diff options
| author | Jakub Stachurski <jakub@wilkuu.nl> | 2026-07-30 21:58:26 +0200 |
|---|---|---|
| committer | Jakub Stachurski <jakub@wilkuu.nl> | 2026-07-30 21:58:26 +0200 |
| commit | 869cecc8a0dd9f5af2e36c89ddabe54f25bc2ebc (patch) | |
| tree | 6db251dbe2b3ee774dd7e07f679193c104a5cd97 /inventory.nix | |
| parent | 8da770badb7fe21df138e770c8d1a8b6c4604882 (diff) | |
Get inventory to manage monitoring connections
This makes it so you can define the monitoring in the inventory and
tacitus will automatically, pick it up.
Diffstat (limited to 'inventory.nix')
| -rw-r--r-- | inventory.nix | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/inventory.nix b/inventory.nix index db3d3f9..a476191 100644 --- a/inventory.nix +++ b/inventory.nix @@ -7,7 +7,27 @@ ./users/wilkuu-server.nix inputs.stalwart-nix.nixosModules.default ]; - interfaces = { }; + monitoring = { + internal = [ + "wireguard" + "fail2ban" + "node" + ]; + }; + 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"; @@ -16,8 +36,24 @@ nix-modules = [ ./users/wilkuu.nix ]; - interfaces = { }; + 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"; @@ -25,7 +61,25 @@ nix-modules = [ ./users/wilkuu-server.nix ]; - interfaces = { }; + 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 |
