nixos/vm: enable qemu netork bridge
This commit is contained in:
@@ -4,5 +4,10 @@
|
|||||||
diskSize = 8192;
|
diskSize = 8192;
|
||||||
graphics = false;
|
graphics = false;
|
||||||
memorySize = 4096;
|
memorySize = 4096;
|
||||||
|
|
||||||
|
qemu.networkingOptions = [
|
||||||
|
"-nic bridge,br=virbr0,id=hn0,model=virt-net-pci"
|
||||||
|
"-device virtio-net-pci,netdev=hn0,id=nic1"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user