Added power management
This commit is contained in:
parent
e124978876
commit
a9e0561709
1 changed files with 17 additions and 0 deletions
|
|
@ -115,6 +115,23 @@
|
|||
git
|
||||
];
|
||||
|
||||
# TODO: Bluetooth
|
||||
# See: https://nixos.wiki/wiki/Bluetooth
|
||||
|
||||
# Power Management
|
||||
# See: https://nixos.wiki/wiki/Laptop
|
||||
services.auto-cpufreq.enable = true;
|
||||
services.auto-cpufreq.settings = {
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "never";
|
||||
};
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "auto";
|
||||
};
|
||||
};
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue