This commit is contained in:
2025-12-31 11:36:00 +03:00
parent c9363ca1db
commit 6dd6532d65
3 changed files with 42 additions and 77 deletions
+8 -12
View File
@@ -1,5 +1,11 @@
{ inputs, ... }@flakeContext:
let
mkDeploy = hostname: {
hostname = "${hostname}";
profiles.system = {
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.${hostname};
};
};
user = "${inputs.zeroq-deploy.devices.username}";
server = "${inputs.zeroq-deploy.devices.server.hostname}";
vds = "${inputs.zeroq-deploy.devices.vds.hostname}";
@@ -9,18 +15,8 @@ in
sshUser = "${user}";
user = "root";
nodes = {
"${server}" = {
hostname = "${server}";
profiles.system = {
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.${server};
};
};
"${vds}" = {
hostname = "${vds}";
profiles.system = {
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations."${vds}";
};
};
"${server}" = mkDeploy "${server}";
"${vds}" = mkDeploy "${vds}";
};
};
# This is highly advised, and will prevent many possible mistakes