nixos/vm: enable qemu netork bridge
Check / Nix flake (push) Has been cancelled
Lint / Nix expressions (push) Has been cancelled

This commit is contained in:
2026-05-02 21:56:19 +02:00
parent a2d9278e4e
commit 46dbcefcf3
+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=/usr/lib/qemu/qemu-bridge-helper"
"-device virtio-net-pci,netdev=hn0,id=nic1"
];
}; };
} }