From 59b5f55e6d27b1f7a4df95c4ac168d95a978920a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 15 Jul 2023 17:03:48 -0400 Subject: [PATCH] srb2: Add hosting support --- containers/srb2.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/containers/srb2.nix b/containers/srb2.nix index 4880137..c4bc5c6 100644 --- a/containers/srb2.nix +++ b/containers/srb2.nix @@ -4,6 +4,8 @@ containers.srb2 = { privateNetwork = true; ephemeral = true; + hostAddress = "192.168.100.10"; + localAddress = "192.168.100.11"; bindMounts = { "/home/user/.srb2" = { @@ -41,6 +43,13 @@ ../setup.nix ]; + networking.nat.forwardPorts = [ + { + destination = "192.168.100.11:5029"; + sourcePort = 5029; + } + ]; + environment.systemPackages = with pkgs; [ srb2 ];