Fix Intel HW Acceleration

This commit is contained in:
Victor Mignot 2024-02-08 09:59:41 +01:00
parent 697efb7709
commit 4b09bbb3f3
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -11,12 +11,17 @@ with lib;
};
config = {
boot.kernelParams = mkIf (config.hwAccelerationGPU == "intel") [
"i915.enable_guc=2"
];
hardware.opengl = {
enable = config.hwAccelerationGPU != null;
extraPackages = with pkgs; [
(mkIf (config.hwAccelerationGPU == "intel") intel-media-driver)
libvdpau-va-gl
vaapiVdpau
(mkIf (config.hwAccelerationGPU == "intel") intel-compute-runtime)
(mkIf (config.hwAccelerationGPU == "nvidia") libvdpau-va-gl)
(mkIf (config.hwAccelerationGPU == "nvidia") vaapiVdpau)
];
};