Prolong laptop's battery life

This commit is contained in:
Henrik Lissner 2020-01-03 06:40:31 -05:00
parent 551594c34a
commit d458e11e22
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -37,9 +37,12 @@ in {
networking.wireless.enable = true;
# Optimize power use
environment.systemPackages = [ pkgs.powertop pkgs.acpi ];
environment.systemPackages = [ pkgs.acpi ];
services.tlp.enable = true;
powerManagement.powertop.enable = true;
powerManagement = {
powertop.enable = true;
cpuFreqGovernor = "ondemand";
};
# Monitor backlight control
programs.light.enable = true;