mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 09:43:11 +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
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user