From 90adb1fee6b078ffd16c3a3dec3123fc729a4f9b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 28 Oct 2026 17:14:40 +0100 Subject: {flake,hosts/default}: Use deploy-rs again Yes the company which maintains it is really heavily in AI, blockchain and gas/oil. Yes, they are not really maintaining it so well. But it is still so much better than the shell script, that's currently in use. --- hosts/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/default.nix b/hosts/default.nix index 651569d..dc3b45d 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -4,6 +4,8 @@ nixpkgs, specialArgs, extraModules, + deploy-rs, + self, }: let hosts = nixLib.mkByName { useShards = false; @@ -22,7 +24,16 @@ value ]; }; + mkDeployHost = name: value: { + hostname = name; + profiles.system = { + user = "root"; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations."${name}"; + }; + }; + nixosConfigurations = builtins.mapAttrs mkNixosConfiguration hosts; + nodes = builtins.mapAttrs mkDeployHost hosts; in { - inherit nixosConfigurations; + inherit nixosConfigurations nodes; } -- cgit v1.3.1