From 8e5d3c77c7fd4a7a2b22a003ba63042e5de26d9f Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 11 Oct 2024 16:57:41 -0400 Subject: [PATCH] containers(wine): simplify networking It turns out that having to do the `nat` shenanigans is no longer necessary or was never necessary to begin with. In either case, the simplified result is much easier to work with due to no dependency on the localAddress. --- containers/wine.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/containers/wine.nix b/containers/wine.nix index 8e5c86a3..23157262 100644 --- a/containers/wine.nix +++ b/containers/wine.nix @@ -9,7 +9,7 @@ let inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya; inherit (config.modules.system) username; - inherit (lib) singleton getExe; + inherit (lib) getExe; sakayaPort = 39493; in @@ -66,14 +66,7 @@ in hardware.graphics.enable = true; - networking = { - nat.forwardPorts = singleton { - destination = "192.168.100.49:${sakayaPort}"; - sourcePort = sakayaPort; - }; - - firewall.allowedTCPPorts = [ sakayaPort ]; - }; + networking.firewall.allowedTCPPorts = [ sakayaPort ]; systemd.services.sakaya = { enable = true;