nix-config/nixos/_mixins/hardware/intel.accelerated-video-playback.nix
2024-05-23 15:02:20 -04:00

17 lines
408 B
Nix

{ 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"; };
}