use tlp instead of auto-cpufreq
This commit is contained in:
parent
1cbc23c73a
commit
b0740ce735
2 changed files with 17 additions and 3 deletions
18
flake.nix
18
flake.nix
|
|
@ -61,12 +61,26 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
}
|
||||
({ lib, pkgs, ... }: {
|
||||
({ lib, ... }: {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
networking.hostName = lib.mkForce "seele";
|
||||
powerManagement.powertop.enable = true;
|
||||
services.upower.enable = true;
|
||||
services.auto-cpufreq.enable = true;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balanced";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 80;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue