diff options
1 files changed, 12 insertions, 0 deletions
| -rw-r--r-- | machines/juno/configuration.nix | 12 |
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) + ]; + }; } |
