add fs & state version & fixes
This commit is contained in:
parent
b153246f90
commit
662d5a9f2e
4 changed files with 26 additions and 14 deletions
14
flake.nix
14
flake.nix
|
@ -46,7 +46,7 @@
|
|||
nixosConfigurations = builtins.mapAttrs (name: config:
|
||||
(getNixpkgs config.ver).lib.nixosSystem {
|
||||
system = config.system;
|
||||
modules = config.modules ++ defaultModules ++ [{ hostName = ${name}; }];
|
||||
modules = config.modules ++ defaultModules ++ [{ hostName = "${name}"; }];
|
||||
}
|
||||
) nodes;
|
||||
|
||||
|
@ -56,13 +56,11 @@
|
|||
magicRollback = true;
|
||||
remoteBuild = true;
|
||||
nodes = builtins.mapAttrs (name: config: {
|
||||
"${name}" = {
|
||||
hostname = builtins.head (builtins.split "/" config.ip4);
|
||||
profilesOrder = [ "system" ];
|
||||
profiles = {
|
||||
system = {
|
||||
path = (getDeployPkgs config.ver).deploy-rs.lib.activate.nixos self.nixosConfigurations.${name};
|
||||
};
|
||||
hostname = builtins.head (builtins.split "/" config.ip4);
|
||||
profilesOrder = [ "system" ];
|
||||
profiles = {
|
||||
system = {
|
||||
path = (getDeployPkgs config.ver).deploy-rs.lib.activate.nixos self.nixosConfigurations.${name};
|
||||
};
|
||||
};
|
||||
}) nodes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue