补回deploy的配置

This commit is contained in:
2023-08-21 01:20:53 +08:00
parent 84ba2e1c95
commit 4bae6952ba

View File

@@ -627,5 +627,23 @@
};
# sudo HTTPS_PROXY=socks5://127.0.0.1:10884 nixos-install --flake .#bootstrap --option substituters http://127.0.0.1:5000 --option require-sigs false
};
deploy =
{
sshUser = "root";
user = "root";
fastConnection = true;
nodes = builtins.listToAttrs (builtins.map
(node:
{
name = node;
value =
{
hostname = node;
profiles.system.path = inputs.self.nixosConfigurations.${node}.pkgs.deploy-rs.lib.activate.nixos
inputs.self.nixosConfigurations.${node};
};
})
[ "vps6" "vps4" "vps7" ]);
};
};
}