From dd9172020d1f2f3200156d02c07d51fd8c2cebff 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/machines/p330/hardware-configuration.nix b/machines/p330/hardware-configuration.nix index 77d666e..3147665 100644 --- a/machines/p330/hardware-configuration.nix +++ b/machines/p330/hardware-configuration.nix @@ -43,6 +43,21 @@ 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; + driSupport = true; + extraPackages = with pkgs; [ + intel-media-driver + vaapiIntel + vaapiVdpau + libvdpau-va-gl + ]; + }; + # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; }