diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-10-28 17:14:40 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-10-28 17:14:40 +0100 |
| commit | 90adb1fee6b078ffd16c3a3dec3123fc729a4f9b (patch) | |
| tree | 50bb68a9a8124e1f66bdaad1197c007386bffe38 /hosts/default.nix | |
| parent | flake: Only expose these tests in `checks` which are not broken (diff) | |
| download | nixos-server-90adb1fee6b078ffd16c3a3dec3123fc729a4f9b.zip | |
{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.
Diffstat (limited to 'hosts/default.nix')
| -rw-r--r-- | hosts/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
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; } |
