deploy-rs configuration
This commit is contained in:
parent
92cef09d87
commit
7e18add7ea
3 changed files with 112 additions and 15 deletions
12
helpers.nix
12
helpers.nix
|
@ -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};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue