Add vfio stuff for win10

Add a whole bunch of stuff to start/stop displays for the win10 vm
Hopefully this will allow win10 to directly use the same GPU in passthru
mode
This commit is contained in:
Greg Hellings
2025-01-08 08:05:24 -06:00
parent 8a0b0f55e8
commit 2bbbeaa5f1
7 changed files with 131 additions and 7 deletions
+11 -4
View File
@@ -34,7 +34,9 @@ with lib;
OVMFFull
nixos-generators
packer
swtpm
virt-manager
virtio-win
xorriso
];
@@ -45,11 +47,16 @@ with lib;
libvirtd = {
enable = true;
onBoot = "ignore"; # Do not auto-restart VMs on boot, unless they are marked autostart
qemu.ovmf = {
enable = true;
packages = [ pkgs.OVMFFull.fd ];
qemu = {
ovmf = {
enable = true;
packages = [ pkgs.OVMFFull.fd ];
};
swtpm = {
enable = true;
package = pkgs.swtpm;
};
};
qemu.swtpm.enable = true;
};
virtualbox.host = {