mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+8
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user