-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhive.nix
74 lines (74 loc) · 1.37 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
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"
];
};
megumin = createConfiguration {
hostName = "megumin";
host = "megumin";
tags = [
"bealv"
"worker"
];
};
vi = createConfiguration {
hostName = "vi";
host = "vi";
tags = [
"bealv"
"worker"
];
};
}