From 87763bcc7d13e92b96c5743507795fba4444eabe Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 22 Dec 2025 11:08:57 -0600 Subject: give up on agenix; set up remote deploys (not currently working) --- flake.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5d644c5..d940a9a 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; + }; + }; }; } -- cgit v1.3.1