🖼 darkone.graphic.qemu
QEMU test VMs bridged on the DNF LAN
Used by dnf/scripts/vm-start.sh.
Enslaves the wired NIC into a NetworkManager bridge and lets unprivileged
users plug VMs into it through the setuid qemu-bridge-helper. A VM then
gets its address from the zone gateway like a physical machine, so
just full-install <host> nixos <ip> reaches it.
darkone.graphic.qemu = { enable = true; bridge.interface = "enp2s0"; bridge.macAddress = "aa:bb:cc:dd:ee:ff";};Options
Section titled “Options”- enable
boolQEMU test VMs bridged on the DNF LAN - bridge.name
strBridge interface the VMs plug into. - bridge.interface
strWired NIC enslaved into the bridge. - bridge.macAddress
strBridge MAC address: the NIC’s own, to keep the zone DHCP reservation.
darkone.graphic.qemu = { enable = false; bridge.name = "br0"; bridge.interface = "enp2s0"; bridge.macAddress = "aa:bb:cc:dd:ee:ff";};Source: modules/graphic/qemu.nix 🡕