mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-16 16:09:40 +01:00
1da3ba110c
`libvdpau-va-gl` is a wrapper around VAAPI to have a VDPAU driver, which is required for Intel GPU's. `VDPAU_DRIVER` environment variable is set to "va_gl", since it defaults to "nvidia".
19 lines
424 B
Nix
19 lines
424 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
boot.initrd.kernelModules = [ "i915" ];
|
|
|
|
environment.variables = {
|
|
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
|
};
|
|
|
|
hardware.cpu.intel.updateMicrocode =
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
vaapiIntel
|
|
vaapiVdpau
|
|
libvdpau-va-gl
|
|
intel-media-driver
|
|
];
|
|
}
|