-
Notifications
You must be signed in to change notification settings - Fork 1
/
hive.nix
69 lines (56 loc) · 1.48 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
let
sources = import ./nix/sources.nix;
inherit (sources) nixpkgs;
inherit (sources) nixpkgs-unstable;
lib = import (nixpkgs + "/lib");
in
{
meta = {
nixpkgs = import nixpkgs { };
};
defaults = { pkgs, config, ... }: {
deployment.targetHost = lib.mkDefault "${config.networking.fqdn}";
imports = [
(sources.agenix + "/modules/age.nix")
./roles/all
];
};
"gw02" = { name, nodes, ... }: {
imports = [ ./machines/gw02.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw03" = { name, nodes, ... }: {
imports = [ ./machines/gw03.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw04" = { name, nodes, ... }: {
imports = [ ./machines/gw04.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw05" = { name, nodes, ... }: {
imports = [ ./machines/gw05.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw06" = { name, nodes, ... }: {
imports = [ ./machines/gw06.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw07" = { name, nodes, ... }: {
imports = [ ./machines/gw07.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw08" = { name, nodes, ... }: {
imports = [ ./machines/gw08.ffrn.de ];
deployment.tags = [ "gw" ];
};
"gw09" = { name, nodes, ... }: {
imports = [ ./machines/gw09.ffrn.de ];
deployment.tags = [ "gw" ];
};
"map2" = { name, nodes, ... }: {
imports = [ ./machines/map2.ffrn.de ];
};
"stats1" = { name, nodes, ... }: {
imports = [ ./machines/stats1.ffrn.de ];
};
}