-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployments.nix
50 lines (43 loc) · 1.21 KB
/
deployments.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ self, deploy-rs, ... } @ inputs: let
getArch = config: config.pkgs.hostPlatform.system;
mkDeploy = baseOs: deployer: let
d-lib = deploy-rs.lib.${getArch baseOs};
in deployer {
inherit baseOs d-lib;
};
in {
rpinix = mkDeploy self.nixosConfigurations.rpinix ({ baseOs, d-lib }: {
hostname = "rpinix.local";
sshUser = "deploy-rs";
profiles.system = {
user = "root";
path = d-lib.activate.nixos baseOs;
};
});
rpi = mkDeploy self.nixosConfigurations.rpi ({ baseOs, d-lib }: {
hostname = "rpi.local";
sshUser = "deploy-rs";
profiles.system = {
user = "root";
path = d-lib.activate.nixos baseOs;
};
} // {
profiles = {}; # Temporary node exclusion
});
oci-master = mkDeploy self.nixosConfigurations.oci-master ({ baseOs, d-lib }: {
hostname = "ykis-ocimaster.ddns.net";
sshUser = "deploy-rs";
profiles.system = {
user = "root";
path = d-lib.activate.nixos baseOs;
};
});
oci-agent = mkDeploy self.nixosConfigurations.oci-agent ({ baseOs, d-lib }: {
hostname = "ykis-ociagent.ddns.net";
sshUser = "deploy-rs";
profiles.system = {
user = "root";
path = d-lib.activate.nixos baseOs;
};
});
}