Skip to content

🖼 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";
};
  • enable bool QEMU test VMs bridged on the DNF LAN
  • bridge.name str Bridge interface the VMs plug into.
  • bridge.interface str Wired NIC enslaved into the bridge.
  • bridge.macAddress str Bridge 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 🡕