From 8357dea51dec06e388cd2c346115da5ed739db9b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 30 Nov 2023 21:59:28 +0200 Subject: [all] Hardware acceleration --- machines/juno/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'machines/juno') diff --git a/machines/juno/configuration.nix b/machines/juno/configuration.nix index 9e75d45..113be25 100644 --- a/machines/juno/configuration.nix +++ b/machines/juno/configuration.nix @@ -12,4 +12,16 @@ ["level auto" 53 32767] ]; }; + + # 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) + ]; + }; } -- cgit v1.3.1-26-gb76a