Add cpufreq configuration for laptops
This commit is contained in:
parent
360533b7e8
commit
037fef7c48
2 changed files with 16 additions and 0 deletions
15
nixos/includes/hardware/cpufreq.nix
Normal file
15
nixos/includes/hardware/cpufreq.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
services.auto-cpufreq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "never";
|
||||
};
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "never";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue