mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			508 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			508 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../../common/cpu/amd
 | 
						|
    ../../../../common/pc/laptop
 | 
						|
    ../../../../common/pc/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  # Cooling management
 | 
						|
  services.thermald.enable = lib.mkDefault true;
 | 
						|
 | 
						|
  # keyboard backlight lives in /sys/class/leds/rgb:kbd_backlight
 | 
						|
  hardware =
 | 
						|
    if lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11" then
 | 
						|
      {
 | 
						|
        tuxedo-drivers.enable = lib.mkDefault true;
 | 
						|
      }
 | 
						|
    else
 | 
						|
      {
 | 
						|
        tuxedo-keyboard.enable = lib.mkDefault true;
 | 
						|
      };
 | 
						|
}
 |