summaryrefslogtreecommitdiff
path: root/hosts/minime/networking/uvm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/minime/networking/uvm.nix')
-rw-r--r--hosts/minime/networking/uvm.nix32
1 files changed, 29 insertions, 3 deletions
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" ];
};
}