nixos-container: add --port option for nixos-container (forward network ports to systemd-nspawn container)

This commit is contained in:
Ian-Woo Kim
2017-02-15 05:12:46 +01:00
committed by Robin Gloster
parent 3490508ed1
commit a238c8a575
2 changed files with 7 additions and 1 deletions
@@ -89,6 +89,9 @@ let
if [ -n "$HOST_BRIDGE" ]; then
extraFlags+=" --network-bridge=$HOST_BRIDGE"
fi
if [ -n "$HOST_PORT" ]; then
extraFlags+=" --port=$HOST_PORT"
fi
fi
extraFlags+=" ${concatStringsSep " " (mapAttrsToList nspawnExtraVethArgs cfg.extraVeths)}"