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.
This commit is contained in:
Donovan Glover 2024-10-11 16:57:41 -04:00
parent d7f4e3fccc
commit 8e5d3c77c7
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -9,7 +9,7 @@
let let
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya; inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
inherit (config.modules.system) username; inherit (config.modules.system) username;
inherit (lib) singleton getExe; inherit (lib) getExe;
sakayaPort = 39493; sakayaPort = 39493;
in in
@ -66,14 +66,7 @@ in
hardware.graphics.enable = true; hardware.graphics.enable = true;
networking = { networking.firewall.allowedTCPPorts = [ sakayaPort ];
nat.forwardPorts = singleton {
destination = "192.168.100.49:${sakayaPort}";
sourcePort = sakayaPort;
};
firewall.allowedTCPPorts = [ sakayaPort ];
};
systemd.services.sakaya = { systemd.services.sakaya = {
enable = true; enable = true;