mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	treewide: avoid alias usage for intel-vaapi-driver based on nixos version
This commit is contained in:
		@@ -14,7 +14,10 @@ in
 | 
			
		||||
	# 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
 | 
			
		||||
	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 = [
 | 
			
		||||
		# S3 suspend is broken as of Sept. 2022 (screen does not come back properly), use S2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user