1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-15 23:49:41 +01:00
nixos-hardware/common/gpu/intel.nix
2022-04-12 11:08:50 -04:00

15 lines
302 B
Nix

{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
};
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
libvdpau-va-gl
intel-media-driver
];
}