nixos-container: add --port option for nixos-container (forward network ports to systemd-nspawn container)
This commit is contained in:
committed by
Robin Gloster
parent
3490508ed1
commit
a238c8a575
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user