mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	The common/pc/laptop/ssd folder was apparently moved a level up and was replaced by a symlink to keep things working. We can consolidate this now.
		
			
				
	
	
		
			26 lines
		
	
	
		
			556 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			556 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../common/cpu/intel/comet-lake/cpu-only.nix
 | 
						|
    ../../../common/pc/laptop
 | 
						|
    ../../../common/pc/ssd
 | 
						|
    ../../battery.nix
 | 
						|
  ];
 | 
						|
 | 
						|
  boot.kernelParams = [
 | 
						|
    # These options are needed for suspend to work,
 | 
						|
    # otherwise the nvme will be mounted read-only on resume
 | 
						|
    "pcie_aspm=off"
 | 
						|
    "pcie_port_pm=off"
 | 
						|
    "nvme_core.default_ps_max_latency_us=0"
 | 
						|
    "mem_sleep_default=deep"
 | 
						|
  ];
 | 
						|
 | 
						|
  services.thermald.enable = lib.mkDefault true;
 | 
						|
  powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
 | 
						|
}
 |