1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-19 17:39:42 +01:00

treewide: avoid alias usage for intel-vaapi-driver based on nixos version

This commit is contained in:
Lily Foster 2023-06-23 07:38:13 -04:00
parent 429f232fe1
commit 1d0b3cf27b
No known key found for this signature in database
GPG key ID: 49340081E484C893
2 changed files with 5 additions and 2 deletions

View file

@ -8,7 +8,7 @@
}; };
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl.extraPackages = with pkgs; [
vaapiIntel (if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
libvdpau-va-gl libvdpau-va-gl
intel-media-driver intel-media-driver
]; ];

View file

@ -14,7 +14,10 @@ in
# GPU is an Intel Iris Xe, on a “TigerLake” mobile CPU # GPU is an Intel Iris Xe, on a “TigerLake” mobile CPU
boot.initrd.kernelModules = [ "i915" ]; # Early loading so the passphrase prompt appears on external displays boot.initrd.kernelModules = [ "i915" ]; # Early loading so the passphrase prompt appears on external displays
services.xserver.videoDrivers = [ "intel" ]; services.xserver.videoDrivers = [ "intel" ];
hardware.opengl.extraPackages = with pkgs; [ intel-media-driver vaapiIntel ]; hardware.opengl.extraPackages = with pkgs; [
intel-media-driver
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
];
boot.kernelParams = [ boot.kernelParams = [
# S3 suspend is broken as of Sept. 2022 (screen does not come back properly), use S2 # S3 suspend is broken as of Sept. 2022 (screen does not come back properly), use S2