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