add vps as pkg in flake
This commit is contained in:
parent
dee29459a5
commit
4cb86a4050
10
flake.nix
10
flake.nix
@ -222,6 +222,7 @@
|
|||||||
# Build the entire system for uploading to attic
|
# Build the entire system for uploading to attic
|
||||||
host-workstation = self.nixosConfigurations."AMD-Workstation".config.system.build.toplevel;
|
host-workstation = self.nixosConfigurations."AMD-Workstation".config.system.build.toplevel;
|
||||||
host-hypervisor = self.nixosConfigurations."Home-Hypervisor".config.system.build.toplevel;
|
host-hypervisor = self.nixosConfigurations."Home-Hypervisor".config.system.build.toplevel;
|
||||||
|
host-vps = self.nixosConfigurations."NixOS-VPS".config.system.build.toplevel;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -234,17 +235,18 @@
|
|||||||
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
|
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
mkDeploy = name: conf: conf // {
|
||||||
NixOS-VPS = {
|
|
||||||
hostname = "wg.ataraxiadev.com";
|
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
sshUser = "deploy";
|
sshUser = "deploy";
|
||||||
user = "root";
|
user = "root";
|
||||||
fastConnection = true;
|
fastConnection = true;
|
||||||
remoteBuild = false;
|
remoteBuild = false;
|
||||||
path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.NixOS-VPS;
|
path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.${name};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in builtins.mapAttrs mkDeploy {
|
||||||
|
NixOS-VPS = { hostname = "wg.ataraxiadev.com"; };
|
||||||
|
Home-Hypervisor = { hostname = "192.168.0.10"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user