nixos/vm: enable qemu netork bridge

This commit is contained in:
2026-05-02 21:56:19 +02:00
committed by ErrorNoInternet
parent 6cd9ae97ea
commit dda6fca200
+6
View File
@@ -1,8 +1,14 @@
{ lib, ... }:
{ {
virtualisation.vmVariant.virtualisation = { virtualisation.vmVariant.virtualisation = {
cores = 2; cores = 2;
diskSize = 8192; diskSize = 8192;
graphics = false; graphics = false;
memorySize = 4096; memorySize = 4096;
qemu.networkingOptions = lib.mkForce [
"-nic bridge,br=virbr0,id=hn0,model=virt-net-pci,helper=/run/wrappers/bin/qemu-bridge-helper"
"-device virtio-net-pci,netdev=hn0,id=nic1"
];
}; };
} }