From cf90fea47af480908ed37341465cc9929f96979f Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Wed, 30 Oct 2024 16:39:35 +0100 Subject: [PATCH] hardware video acceleration --- common/graphics/opengl.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/graphics/opengl.nix b/common/graphics/opengl.nix index 6f24dec..7d8a21f 100644 --- a/common/graphics/opengl.nix +++ b/common/graphics/opengl.nix @@ -43,9 +43,15 @@ in enable = true; #driSupport = true; #driSupport32Bit = true; - extraPackages = [ ]; + extraPackages = with pkgs; [ + intel-media-driver # LIBVA_DRIVER_NAME=iHD + # intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + # libvdpau-va-gl + ]; }; + environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; # Force intel-media-driver + # chaotic.mesa-git.enable = true; boot.kernelParams = [ "nouveau.config=NvGspRm=1" ];