nixos-hardware/common/cpu/intel/default.nix

20 lines
424 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
2018-08-25 06:55:35 -04:00
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
];
}