From 2c0034fc826688db9162bb6e5fe1cd7f3d2ff805 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 15 Apr 2022 04:30:58 +0200 Subject: [PATCH] Enable pertinent Intel drivers for HW acceleration --- configuration.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 049e169..299805a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 = {