mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Test the kernel version, rather than the NixOS release version
Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
This commit is contained in:
		@@ -8,7 +8,7 @@ let
 | 
			
		||||
  inherit (lib) mkDefault mkEnableOption mkIf mkMerge version versionAtLeast versionOlder;
 | 
			
		||||
 | 
			
		||||
  cfg = config.hardware.asus.zephyrus.ga402x;
 | 
			
		||||
  defaultAutosuspendEnable = if (versionAtLeast version "6.9") then true else false;
 | 
			
		||||
  defaultAutosuspendEnable = versionAtLeast config.boot.kernelPackages.kernel.version "6.9";
 | 
			
		||||
 | 
			
		||||
in {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user