virtualisation.qemu.networkingOptions
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 string- Default
[ ]- Example
[ "-net nic,netdev=user.0,model=virtio" "-netdev user,id=user.0,\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}" ]- Declared
- <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>