2018-10-30 14:16:36 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
2017-12-27 02:28:30 -05:00
|
|
|
|
2017-12-24 18:21:05 -05:00
|
|
|
{
|
2018-08-25 06:55:35 -04:00
|
|
|
boot.initrd.kernelModules = [ "i915" ];
|
|
|
|
|
2022-02-25 10:17:00 -05:00
|
|
|
environment.variables = {
|
|
|
|
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
|
|
|
};
|
|
|
|
|
2018-10-30 14:16:36 -04:00
|
|
|
hardware.cpu.intel.updateMicrocode =
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2018-08-04 11:59:08 -04:00
|
|
|
|
2017-12-27 02:28:30 -05:00
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
vaapiIntel
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
2019-10-26 08:21:36 -04:00
|
|
|
intel-media-driver
|
2017-12-27 02:28:30 -05:00
|
|
|
];
|
2017-12-24 18:21:05 -05:00
|
|
|
}
|