fail at singe gpu passthrough

This commit is contained in:
Kopatz
2024-04-20 17:01:39 +02:00
parent e11efcb113
commit 4a568ff653
4 changed files with 93 additions and 0 deletions

View File

@@ -22,6 +22,22 @@ in
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull.fd ];
};
hooks.qemu = {
# doesnt work, screen just freezes. no error in libvirt logs though, so idk how to fix it
"passthrough" = lib.getExe (
pkgs.writeShellApplication {
name = "qemu-hook";
excludeShellChecks = [ "SC2046" "SC2086" ];
runtimeInputs = with pkgs; [
libvirt
systemd
kmod
];
text = builtins.readFile ./hook.sh;
}
);
};
};
spiceUSBRedirection.enable = true;
};