mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	add lenovo/thinkpad/x1/yoga/7th-gen
This commit is contained in:
		
							
								
								
									
										14
									
								
								lenovo/thinkpad/x1/yoga/7th-gen/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								lenovo/thinkpad/x1/yoga/7th-gen/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
{ lib, pkgs, ... }: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../.
 | 
			
		||||
    ../../../../../common/pc/laptop/ssd
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # This laptop is too new for the kernel currently in nixos-unstable.
 | 
			
		||||
  # On Kernel 5.15.x, dmesg shows the `hardware is newer than drivers` message.
 | 
			
		||||
  # When starting the system with 5.15.x, only a tty is being displayed.
 | 
			
		||||
  # After our tests, at least version 5.19 is required for the system to work properly.
 | 
			
		||||
  boot.kernelPackages = lib.mkIf
 | 
			
		||||
    (lib.versionOlder pkgs.linux.version "5.19")
 | 
			
		||||
    (lib.mkDefault pkgs.linuxPackages_latest);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user