deploy-rs configuration

This commit is contained in:
Fern Garden 2025-07-11 12:36:07 +08:00
parent 92cef09d87
commit 7e18add7ea
3 changed files with 112 additions and 15 deletions

View file

@ -1,6 +1,7 @@
inputs:
with inputs;
with inputs.nixpkgs.lib; {
with inputs.nixpkgs.lib; let
in {
mergeHosts = lists.foldl' (
a: b: attrsets.recursiveUpdate a b
) {};
@ -53,5 +54,14 @@ with inputs.nixpkgs.lib; {
++ (filesystem.listFilesRecursive ./modules)
++ extraModules;
};
deploy.nodes.${hostname} = {
hostname = "${hostname}.local";
profiles.system = {
user = "root";
sshUser = user;
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.${hostname};
};
};
};
}