mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	add dell xps 9315
This commit is contained in:
		
							
								
								
									
										30
									
								
								dell/xps/13-9315/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								dell/xps/13-9315/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../common/cpu/intel
 | 
			
		||||
    ../../../common/pc/laptop
 | 
			
		||||
    ../../../common/pc/ssd
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # enable firmwares with a license allowing redistribution
 | 
			
		||||
  # this includes the Wi-Fi and Bluetooth firmwares
 | 
			
		||||
  hardware.enableRedistributableFirmware = true;
 | 
			
		||||
 | 
			
		||||
  # touchpad uses I²C, so PS/2 is unnecessary
 | 
			
		||||
  boot.blacklistedKernelModules = ["psmouse"];
 | 
			
		||||
 | 
			
		||||
  # enable finger print sensor
 | 
			
		||||
  # configure with `sudo fprintd-enroll <username>`
 | 
			
		||||
  services.fprintd.enable = true;
 | 
			
		||||
  services.fprintd.tod.enable = true;
 | 
			
		||||
  services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
 | 
			
		||||
 | 
			
		||||
  # enable updating firmware via `fwupdmgr`
 | 
			
		||||
  services.fwupd.enable = true;
 | 
			
		||||
 | 
			
		||||
  # enable cooling management, see NixOS/nixos-hardware#127
 | 
			
		||||
  services.thermald.enable = lib.mkDefault true;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user