From 081084648f1f932725864ff937592a8613bdd4df Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Mon, 3 Nov 2025 13:45:59 +0100 Subject: [PATCH] Add VM for NAT64 --- hosts/vm-infra/configuration.nix | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 hosts/vm-infra/configuration.nix diff --git a/hosts/vm-infra/configuration.nix b/hosts/vm-infra/configuration.nix new file mode 100644 index 0000000..1abd6f5 --- /dev/null +++ b/hosts/vm-infra/configuration.nix @@ -0,0 +1,40 @@ +{ + ... +}: + +{ + # State version + system.stateVersion = "25.05"; + + # Machine hostname + networking.hostName = "vm-infra"; + + # Enabled modules + modules = { + profiles.vm.enable = true; + }; + + # Setup Tayga NAT64 + services.tayga = { + enable = true; + ipv4 = { + address = "10.64.0.0"; + router = { + address = "10.64.0.1"; + }; + pool = { + address = "10.64.0.1"; + prefixLength = 16; + }; + }; + ipv6 = { + router = { + address = "fc00:6464::1"; + }; + pool = { + address = "fc00:6464::"; + prefixLength = 96; + }; + }; + }; +}