Fix Intel HW Acceleration
This commit is contained in:
parent
697efb7709
commit
4b09bbb3f3
|
@ -11,12 +11,17 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
boot.kernelParams = mkIf (config.hwAccelerationGPU == "intel") [
|
||||||
|
"i915.enable_guc=2"
|
||||||
|
];
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = config.hwAccelerationGPU != null;
|
enable = config.hwAccelerationGPU != null;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
(mkIf (config.hwAccelerationGPU == "intel") intel-media-driver)
|
(mkIf (config.hwAccelerationGPU == "intel") intel-media-driver)
|
||||||
libvdpau-va-gl
|
(mkIf (config.hwAccelerationGPU == "intel") intel-compute-runtime)
|
||||||
vaapiVdpau
|
(mkIf (config.hwAccelerationGPU == "nvidia") libvdpau-va-gl)
|
||||||
|
(mkIf (config.hwAccelerationGPU == "nvidia") vaapiVdpau)
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue