mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Merge pull request #452 from marijanp/z-series
lenovo/z: add Lenovo Thinkpad Z(13)
This commit is contained in:
		
							
								
								
									
										23
									
								
								lenovo/thinkpad/z/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								lenovo/thinkpad/z/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
{ config, lib, pkgs, ... }: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../lenovo/thinkpad
 | 
			
		||||
    ../../../common/cpu/amd
 | 
			
		||||
    ../../../common/cpu/amd/pstate.nix
 | 
			
		||||
    ../../../common/gpu/amd
 | 
			
		||||
    ../../../common/pc/laptop
 | 
			
		||||
    ../../../common/pc/laptop/acpi_call.nix
 | 
			
		||||
    ../../../common/pc/laptop/ssd
 | 
			
		||||
  ];
 | 
			
		||||
  # kernel versions prior to 5.18 won't boot
 | 
			
		||||
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_5_18);
 | 
			
		||||
 | 
			
		||||
  hardware.enableRedistributableFirmware = lib.mkDefault true;
 | 
			
		||||
  hardware.trackpoint.device = lib.mkDefault "TPPS/2 Elan TrackPoint";
 | 
			
		||||
  hardware.video.hidpi.enable = lib.mkDefault true;
 | 
			
		||||
 | 
			
		||||
  services.fprintd.enable = lib.mkDefault true;
 | 
			
		||||
 | 
			
		||||
  # kernel versions below 6.0 don't contain ACPI suspend2idle drivers for the Z13s AMD hardware
 | 
			
		||||
  # my Z13 froze after waking up from suspend/ hibernate
 | 
			
		||||
  services.logind.lidSwitch = lib.mkIf (lib.versionOlder pkgs.linux.version "6.00") (lib.mkDefault "lock");
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								lenovo/thinkpad/z/z13/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								lenovo/thinkpad/z/z13/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
{ config, lib, pkgs, ... }: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../../lenovo/thinkpad/z
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user