diff --git a/dev_system.nix b/dev_system.nix index 7cde22e..3c0e717 100644 --- a/dev_system.nix +++ b/dev_system.nix @@ -38,10 +38,23 @@ in }; }; - networking.firewall = { - allowedTCPPortRanges = [ - { from = 8000; to = 8020; } - ]; + networking = { + firewall = { + allowedTCPPortRanges = [ + { from = 8000; to = 8020; } + ]; + }; + + nat = { + enable = true; + forwardPorts = [ + { + destination = "localhost:8001"; + proto = "tcp"; + sourcePort = 8001; + } + ]; + } }; services = {