Enable pertinent Intel drivers for HW acceleration

This commit is contained in:
coolneng 2022-04-15 04:30:58 +02:00
parent cf92337f0b
commit 2c0034fc82
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,9 @@
with pkgs;
{
let hybrid-codec-vaapiIntel = vaapiIntel.override { enableHybridCodec = true; };
in {
# Kernel configuration
boot = {
kernelPackages = linuxPackages_zen;
@ -23,7 +25,9 @@ with pkgs;
lib.mkDefault config.hardware.enableRedistributableFirmware;
services.fwupd.enable = true;
hardware.opengl.extraPackages = [ vaapiIntel vaapiVdpau libvdpau-va-gl ];
# GPU Hardware acceleration
hardware.opengl.extraPackages =
[ intel-media-driver hybrid-codec-vaapiIntel vaapiVdpau libvdpau-va-gl ];
# Bootloader configuration
boot.loader = {