virtualisation.qemu.networkingOptions
NixOS option
Networking-related command-line options that should be passed to qemu. The default is to use userspace networking (SLiRP). See the QEMU Wiki on Networking for details. If you override this option, be advised to keep ${QEMU_NET_OPTS:+,$QEMU_NET_OPTS} (as seen in the example) to keep the default runtime behaviour.
type: list of stringDefault
[ ]
Example
declared in: nixos/modules/virtualisation/qemu-vm.nixView source on NixOS/nixpkgs →[
"-net nic,netdev=user.0,model=virtio"
"-netdev user,id=user.0,\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}"
]