Fix Intel HW Acceleration
This commit is contained in:
parent
697efb7709
commit
4b09bbb3f3
|
@ -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)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue