Skip to content

Commit 8e5d3c7

Browse files
committed
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.
1 parent d7f4e3f commit 8e5d3c7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Diff for: containers/wine.nix

+2-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let
1010
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
1111
inherit (config.modules.system) username;
12-
inherit (lib) singleton getExe;
12+
inherit (lib) getExe;
1313

1414
sakayaPort = 39493;
1515
in
@@ -66,14 +66,7 @@ in
6666

6767
hardware.graphics.enable = true;
6868

69-
networking = {
70-
nat.forwardPorts = singleton {
71-
destination = "192.168.100.49:${sakayaPort}";
72-
sourcePort = sakayaPort;
73-
};
74-
75-
firewall.allowedTCPPorts = [ sakayaPort ];
76-
};
69+
networking.firewall.allowedTCPPorts = [ sakayaPort ];
7770

7871
systemd.services.sakaya = {
7972
enable = true;

0 commit comments

Comments
 (0)