-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhive.nix
98 lines (98 loc) · 1.78 KB
/
hive.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
let
sources = import ./npins;
pkgs = import sources.nixpkgs {
config = {
allowUnfree = true;
allowUnfreePredicate = true;
};
};
createConfiguration = parent: {
networking.hostName = parent.hostName;
deployment = {
buildOnTarget = true;
# Allow local deployment with `colmena apply-local`
allowLocalDeployment = true;
targetUser = builtins.getEnv "USER";
targetHost = parent.host;
inherit (parent) tags;
};
imports = [ ./profiles/${parent.hostName}/configuration.nix ];
};
in
{
meta = {
nixpkgs = pkgs;
};
gojo = createConfiguration {
hostName = "gojo";
host = "10.207.7.2";
tags = [
"didactiklabs"
"worker"
];
};
frieren = createConfiguration {
hostName = "frieren";
host = "10.254.0.5";
tags = [
"didactiklabs"
"cp"
];
};
isaac = createConfiguration {
hostName = "isaac";
host = "isaac";
tags = [
"didactiklabs"
"github-runner"
];
};
ippo = createConfiguration {
hostName = "ippo";
host = "ippo";
tags = [
"bealv"
"worker"
];
};
kazuma = createConfiguration {
hostName = "kazuma";
host = "kazuma";
tags = [
"bealv"
"master"
];
};
darkness = createConfiguration {
hostName = "darkness";
host = "darkness";
tags = [
"bealv"
"master"
];
};
megumin = createConfiguration {
hostName = "megumin";
host = "megumin";
tags = [
"bealv"
"master"
];
};
vi = createConfiguration {
hostName = "vi";
host = "vi";
tags = [
"bealv"
"worker"
];
};
haganezuka = createConfiguration {
hostName = "haganezuka";
host = "haganezuka";
tags = [
"bealv"
"haproxy"
];
};
}