more battery optimizations

This commit is contained in:
notgne2 2021-09-26 13:40:06 -07:00
parent 19a2e57246
commit c8b94bc9fe
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
2 changed files with 5 additions and 45 deletions

View file

@ -30,6 +30,8 @@ in
services.thermald.enable = lib.mkDefault true;
boot.kernelParams = lib.optional cfg.battery "iwlwifi.power_save=Y";
# Don't kill the battery
services.upower = {
enable = true;
@ -44,6 +46,9 @@ in
settings = {
DISK_IOSCHED = "bfq bfq";
PCIE_ASPM_ON_BAT = "powersupersave";
PCIE_ASPM_ON_AC = "default";
PLATFORM_PROFILE_ON_BAT = lib.mkDefault "low-power";
PLATFORM_PROFILE_ON_AC = lib.mkDefault "performance";