diff options
| author | Grisha Shipunov | 2025-01-12 21:32:36 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-12 21:32:36 +0100 |
| commit | bd44fc6fcb1fe3df7b8a8c81839e34470fed7911 (patch) | |
| tree | f1a6118da93cac4f533bb001ccbb43ff18366ef3 /hosts/minime/networking | |
| parent | ea46b0bb1edd0c76f9c6cf9dfcc905396e9f66b1 (diff) | |
authentik: init
Diffstat (limited to 'hosts/minime/networking')
| -rw-r--r-- | hosts/minime/networking/default.nix | 3 | ||||
| -rw-r--r-- | hosts/minime/networking/uvm.nix | 32 |
2 files changed, 31 insertions, 4 deletions
diff --git a/hosts/minime/networking/default.nix b/hosts/minime/networking/default.nix index b1c044f..25e20b3 100644 --- a/hosts/minime/networking/default.nix +++ b/hosts/minime/networking/default.nix @@ -1,4 +1,5 @@ -{ ... }: { +{ ... }: +{ imports = [ ./uplink.nix ./uvm.nix diff --git a/hosts/minime/networking/uvm.nix b/hosts/minime/networking/uvm.nix index 15e498e..dfcb14c 100644 --- a/hosts/minime/networking/uvm.nix +++ b/hosts/minime/networking/uvm.nix @@ -1,8 +1,10 @@ -{ ... }: { +{ ... }: +{ + # TODO: make a module systemd.network = { netdevs."10-uvm-br" = { netdevConfig = { - Kind = bridge; + Kind = "bridge"; Name = "uvm-br"; }; }; @@ -13,7 +15,31 @@ DHCPServer = false; IPv6SendRA = true; }; - Address = [ ]; + addresses = [ + { + Address = "10.99.99.1/24"; + } + { + Address = "fd12:3456:789a::1/64"; + } + ]; + ipv6Prefixes = [ + { + Prefix = "fd12:3456:789a::/64"; + } + ]; }; + + networks."11-uvm-br" = { + matchConfig.Name = "uvm-*"; + networkConfig.Bridge = "uvm-br"; + }; + + }; + networking.nat = { + enable = true; + enableIPv6 = true; + externalInterface = "enp90s0"; + internalInterfaces = [ "uvm-br" ]; }; } |
