mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	fixes https://github.com/NixOS/nixos-hardware/issues/1114 and tlp also no longer recommands it.
		
			
				
	
	
		
			32 lines
		
	
	
		
			849 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			849 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
 | 
						|
let
 | 
						|
  inherit (lib) mkDefault;
 | 
						|
 | 
						|
in {
 | 
						|
  imports = [
 | 
						|
    ../../../common/cpu/intel
 | 
						|
    ../../../common/pc/laptop
 | 
						|
    ../../../common/pc/ssd
 | 
						|
    ../sleep-resume/i2c-designware
 | 
						|
  ];
 | 
						|
 | 
						|
  # Force S3 sleep mode. See README.wiki for details.
 | 
						|
  boot.kernelParams = [ "mem_sleep_default=deep" ];
 | 
						|
 | 
						|
  # Touchpad goes over i2c, and the psmouse module interferes with it
 | 
						|
  boot.blacklistedKernelModules = [ "psmouse" ];
 | 
						|
 | 
						|
  # Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
 | 
						|
  hardware.enableRedistributableFirmware = mkDefault true;
 | 
						|
 | 
						|
  # Allows for updating firmware via `fwupdmgr`.
 | 
						|
  services.fwupd.enable = mkDefault true;
 | 
						|
 | 
						|
  # This will save you money and possibly your life!
 | 
						|
  services.thermald.enable = mkDefault true;
 | 
						|
 | 
						|
  # Reloads i2c-designware module after suspend
 | 
						|
  services.sleep-resume.i2c-designware.enable = mkDefault true;
 | 
						|
}
 |