mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			346 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			346 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [ ../. ];
 | 
						|
 | 
						|
  boot.kernel.sysctl = {
 | 
						|
    "vm.laptop_mode" = lib.mkDefault 5;
 | 
						|
  };
 | 
						|
 | 
						|
  # TODO: fix in NixOS/nixpkgs
 | 
						|
  # Disable governor set in hardware-configuration.nix,
 | 
						|
  # required when services.tlp.enable is true:
 | 
						|
  powerManagement.cpuFreqGovernor = lib.mkForce null;
 | 
						|
 | 
						|
  services.tlp.enable = lib.mkDefault true;
 | 
						|
}
 |