From e57ae68efb60527e3898227cb53518ace5d6716a Mon Sep 17 00:00:00 2001 From: imterah Date: Fri, 16 May 2025 12:19:10 -0400 Subject: [PATCH] chore: Switch NAT methods to rely more on Nix --- hosts/andromeda/configuration.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hosts/andromeda/configuration.nix b/hosts/andromeda/configuration.nix index 3e73f27..1e5eb92 100755 --- a/hosts/andromeda/configuration.nix +++ b/hosts/andromeda/configuration.nix @@ -93,9 +93,12 @@ }; # Tailscale fixer-uppers - boot.kernel.sysctl = { - "net.ipv4.ip_forward" = 1; - "net.ipv6.conf.all.forwarding" = 1; + networking.nat = { + enable = true; + enableIPv6 = true; + + internalInterface = "enp6s18"; + externalInterfaces = [ "wg0" ]; }; # Volumes