virtualisation.restrictNetwork
NixOS option
If this option is enabled, the guest will be isolated, i.e. it will not be able to contact the host and no guest IP packets will be routed over the host to the outside. This option does not affect any explicitly set forwarding rules.
type: booleanDefault
false
Example
declared in: nixos/modules/virtualisation/qemu-vm.nixView source on NixOS/nixpkgs →true