diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-22 11:08:57 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-12-22 11:08:57 -0600 |
| commit | 87763bcc7d13e92b96c5743507795fba4444eabe (patch) | |
| tree | 1c394be7bbc358bc8dc3ad119f6ebf150ff0f974 /flake.nix | |
| parent | 4bbaf8fff29ea4f50771025327cb16ed8995aab7 (diff) | |
give up on agenix; set up remote deploys (not currently working)
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -1,15 +1,14 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - determinate = { - url = "github:DeterminateSystems/nix-src/main"; + deploy-rs = { + url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; }; agenix = { url = "github:ryantm/agenix"; inputs.nixpkgs.follows = "nixpkgs"; - inputs.home-manager.follows = ""; }; disko = { @@ -41,8 +40,8 @@ }; outputs = inputs: let - inherit (import ./lib/nix-furnace/mkSystem.nix) mkNixosSystem mkSystemManagerSystem; - in { + inherit (import ./lib/nix-furnace/mkSystem.nix) mkNixosSystem; + in rec { nixosConfigurations."mercury" = mkNixosSystem { inherit inputs; hostname = "mercury"; @@ -61,5 +60,15 @@ username = "collin"; module_types = ["nixos" "hjem"]; }; + + deploy.nodes."ganymede" = { + hostname = "ganymede"; + sshUser = "root"; + + profiles.system = { + user = "root"; + path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos nixosConfigurations."ganymede"; + }; + }; }; } |
