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: boolean
Default
false
Example
true
declared in: nixos/modules/virtualisation/qemu-vm.nixView source on NixOS/nixpkgs →