nix-config/nixos/_mixins/hardware/intel.accelerated-video-playback.nix

18 lines
408 B
Nix
Raw Permalink Normal View History

{ pkgs, config, ... }:
{
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime
];
};
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
}