From 514f08824d20ac7c1b951bf0932fd51e3e5e1d5f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 25 Sep 2023 14:25:46 +0300 Subject: [configuration] Added accelerated video playback config --- configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configuration.nix b/configuration.nix index 76611d5..f09a16e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -94,4 +94,18 @@ in { security.polkit.enable = true; boot.kernelModules = [ "kvm-intel" ]; + + # https://nixos.wiki/wiki/Accelerated_Video_Playback + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; + }; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver # LIBVA_DRIVER_NAME=iHD + vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + vaapiVdpau + libvdpau-va-gl + ]; + }; } -- cgit v1.3.1-26-gb76a