mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 01:07:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			325 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			325 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [ ../. ];
 | 
						|
 | 
						|
  # TODO: fix in NixOS/nixpkgs
 | 
						|
  # Disable governor set in hardware-configuration.nix,
 | 
						|
  # required when services.tlp.enable is true:
 | 
						|
  powerManagement.cpuFreqGovernor =
 | 
						|
    lib.mkIf config.services.tlp.enable (lib.mkForce null);
 | 
						|
 | 
						|
  services.tlp.enable = lib.mkDefault true;
 | 
						|
}
 |