summaryrefslogtreecommitdiff
path: root/inventory.nix
blob: 3e895312fc783760f045d39fd083e156dedeccd6 (plain)
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
{ inputs, ... }: {
  omega-relay = {
    type = "server";
    system = "x86_64-linux";
    nix = true;
    nix-modules = [
      ./users/wilkuu-server.nix
      inputs.stalwart-nix.nixosModules.default
    ];
    monitoring = {
      internal = [
        "wireguard"
        "fail2ban"
        "node"
        "systemd"
        "unbound"
      ];
    };
    interfaces = {
      wg-home = {
        type = "wireguard";
        layer = "internal";
        ip = "192.168.80.100";
      };
      enp6s18 = {
        type = "eth-networkd";
        layer = "external";
        ip = "45.136.141.133";
        ip6 = "2a12:bec0:650:128::133/64";
      };
    };

  };
  apocalypse = {
    type = "desktop";
    system = "x86_64-linux";
    nix = true;
    nix-modules = [
      ./users/wilkuu.nix
    ];
    monitoring = {
      internal = [ "node" ];
    };
    interfaces = {
      nix-laptop = {
        type = "wireguard";
        layer = "internal";
        ip = "192.168.80.99";
      };
      wifi = {
        type = "roaming";
      };
      eth = {
        type = "roaming";
      };
    };
  };

  tacitus = {
    type = "desktop";
    system = "x86_64-linux";
    nix = true;
    nix-modules = [
      ./users/wilkuu-server.nix
    ];
    monitoring = {
      local = [
        "node"
        "mikrotik"
      ];
    };
    interfaces = {
      enp7s0 = {
        type = "eth-networkd";
        layer = "internal";
        ip = "192.168.88.5";
      };
      lo = {
        # A little workaround for not needing to go over the net to get own stats
        type = "roaming"; # TODO Set to something more sensible
        layer = "local";
        ip = "localhost";
      };
    };

  };
  # TODO: Support for live images as packages
  # full-iso = {
  #   type = "live";
  #  system = "x86_64-linux";
  #  nix = true;
  #  nix-paths = [
  #    ./users/live-user.nix
  #  ];
  #  interfaces = null;
  # };
}