aboutsummaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-28 17:14:40 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-28 17:14:40 +0100
commit90adb1fee6b078ffd16c3a3dec3123fc729a4f9b (patch)
tree50bb68a9a8124e1f66bdaad1197c007386bffe38 /hosts
parentflake: Only expose these tests in `checks` which are not broken (diff)
downloadnixos-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')
-rw-r--r--hosts/default.nix13
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;
}