Skip to content

Commit

Permalink
containers(wine): simplify networking
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donovanglover committed Oct 11, 2024
1 parent d7f4e3f commit 8e5d3c7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions containers/wine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8e5d3c7

Please sign in to comment.