2023-02-27 12:59:06 +00:00
|
|
|
{ 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; [
|
2023-06-23 11:38:13 +00:00
|
|
|
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
|
2023-02-27 12:59:06 +00:00
|
|
|
libvdpau-va-gl
|
|
|
|
intel-media-driver
|
|
|
|
];
|
|
|
|
}
|