-
Notifications
You must be signed in to change notification settings - Fork 0
/
hive.nix
51 lines (45 loc) · 1020 Bytes
/
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
let
sources = import ./nix/sources.nix;
inherit (sources) nixpkgs;
inherit (sources) nixpkgs-unstable;
lib = import (nixpkgs + "/lib");
in
{
meta = {
nixpkgs = import nixpkgs { };
};
defaults = { pkgs, ... }: {
# This module will be imported by all hosts
environment.systemPackages = with pkgs; [
vim
wget
curl
htop
mtr
ethtool
tmux
tcpdump
dig
ncdu
];
imports = [
(sources.agenix + "/modules/age.nix")
./modules/time.nix
];
};
"gw-test01" = { name, nodes, ... }: {
imports = [ ./machines/gw-test01.ffrn.de ];
};
"gw-test02" = { name, nodes, ... }: {
imports = [ ./machines/gw-test02.ffrn.de ];
};
"resolver1" = { name, nodes, ... }: {
imports = [ ./machines/resolver1.ff.tomhe.de ];
};
"resolver2" = { name, nodes, ... }: {
imports = [ ./machines/resolver2.ff.tomhe.de ];
};
"www1" = { name, nodes, ... }: {
imports = [ ./machines/www1.ff.tomhe.de ];
};
}