18 lines
540 B
Nix
18 lines
540 B
Nix
|
{ pkgs, ... }:
|
||
|
{
|
||
|
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
|
||
|
];
|
||
|
};
|
||
|
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel ];
|
||
|
environment.systemPackages = [ pkgs.libva-utils ];
|
||
|
}
|