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