mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	lenovo/thinkpad: Refactor of yogas
This commit is contained in:
		@@ -1,11 +1,9 @@
 | 
			
		||||
{ nixos, lib, pkgs, config, stdenv, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../l13
 | 
			
		||||
    ./.
 | 
			
		||||
    ../yoga.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # automatic screen orientation
 | 
			
		||||
  hardware.sensor.iio.enable = true;
 | 
			
		||||
 | 
			
		||||
  services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
 | 
			
		||||
}
 | 
			
		||||
@@ -1,13 +0,0 @@
 | 
			
		||||
{ config, lib, ... }: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../.
 | 
			
		||||
    ../../../common/cpu/intel
 | 
			
		||||
    ../../../common/pc/laptop/acpi_call.nix
 | 
			
		||||
    ../../../common/pc/laptop/ssd
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # automatic screen orientation
 | 
			
		||||
  hardware.sensor.iio.enable = true;
 | 
			
		||||
 | 
			
		||||
  services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										8
									
								
								lenovo/thinkpad/x13/yoga.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								lenovo/thinkpad/x13/yoga.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
{ config, lib, ... }: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./.
 | 
			
		||||
    ../yoga.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										6
									
								
								lenovo/thinkpad/yoga.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								lenovo/thinkpad/yoga.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
{ config, lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  # automatic screen orientation
 | 
			
		||||
  hardware.sensor.iio.enable = true;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user