Configure colmena for remote deployments

This commit is contained in:
Erwin Boskma 2023-10-19 08:35:03 +02:00
parent aab63e451e
commit 22824420c9
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -179,19 +179,18 @@
inherit nixpkgs; inherit nixpkgs;
}; };
}; };
drone = { lib, ... }: { } // builtins.listToAttrs (map
(machine: {
name = machine;
value = {
deployment = { deployment = {
targetHost = "10.0.0.202"; targetHost = machines.${machine}.deploy.host;
targetUser = "root"; targetUser = "root"; # machines.${machine}.deploy.sshUser;
};
imports =
let
system = "x86_64-linux";
systemConfig = import ./machines/drone/configuration.nix inputs;
in
self.lib.systemModules system systemConfig;
}; };
imports = self.lib.systemModules (machines.${machine}.system or "x86_64-linux") machines.${machine}.config;
}; };
})
(builtins.filter (machine: machines.${machine} ? deploy) (builtins.attrNames machines)));
}; };
@ -241,11 +240,11 @@
just just
pciutils pciutils
(cryptsetup.override { cryptsetup
withInternalArgon2 = true;
})
disko.packages.${system}.disko disko.packages.${system}.disko
colmena
]; ];
}; };