From aba9de5278f119ef616ac7dcffffcb4ff9562210 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 29 Jul 2022 21:16:50 +0200 Subject: [PATCH] feat(p330): enable gpu media acceleration --- machines/p330/hardware-configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/machines/p330/hardware-configuration.nix b/machines/p330/hardware-configuration.nix index 77d666e..3ce58d4 100644 --- a/machines/p330/hardware-configuration.nix +++ b/machines/p330/hardware-configuration.nix @@ -43,6 +43,20 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + # GPU acceleration + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; + }; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver + vaapiIntel + vaapiVdpau + libvdpau-va-gl + ]; + }; + # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; }