mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
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:
parent
d7f4e3fccc
commit
8e5d3c77c7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user