mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	Replace ad hoc throttling fix with throttled
`throttled` is a service designed to fix the same CPU throttling bug, but it's an actively maintainted upstream project that we can use.
This commit is contained in:
		@@ -1,9 +1,8 @@
 | 
			
		||||
{ nixos, pkgs, config, stdenv, ... }:
 | 
			
		||||
{ nixos, lib, pkgs, config, stdenv, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../common/cpu/intel
 | 
			
		||||
    ../../../common/pc/laptop/acpi_call.nix
 | 
			
		||||
    ../../../common/pc/laptop/cpu-throttling-bug.nix
 | 
			
		||||
    ../.
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
@@ -26,5 +25,7 @@
 | 
			
		||||
 | 
			
		||||
    LABEL="pulseaudio_end"
 | 
			
		||||
    '';
 | 
			
		||||
    
 | 
			
		||||
    throttled.enable = lib.mkDefault true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user