fail at singe gpu passthrough
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user