mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Better power/performance on battery power
This commit is contained in:
parent
3e85f49d31
commit
0be1e9f60f
|
@ -1,8 +1,23 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.auto-cpufreq ];
|
||||
environment.systemPackages = with pkgs; [ auto-cpufreq thermald ];
|
||||
systemd.services.auto-cpufreq.enable = true;
|
||||
services.auto-cpufreq.enable = true;
|
||||
services.auto-cpufreq.settings = {
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "auto";
|
||||
};
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
scaling_min_freq = 1200000;
|
||||
scaling_max_freq = 2200000;
|
||||
turbo = "never";
|
||||
};
|
||||
};
|
||||
|
||||
services.thermald.enable = true;
|
||||
|
||||
services.upower.enable = true;
|
||||
systemd.services.upower.enable = true;
|
||||
|
|
Loading…
Reference in a new issue