qol: battery changes

This commit is contained in:
2025-12-27 00:24:18 +00:00
parent 786be7bdc9
commit 039cd96329
2 changed files with 11 additions and 5 deletions

View File

@@ -1,17 +1,20 @@
{ ... }:
let
in
{
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_BAT = "power_save";
CPU_SCALING_GOVERNOR_ON_BAT = "laptop-battery-powersave";
CPU_SCALING_GOVERNOR_ON_AC = "performance";
PCIE_ASPM_ON_AC = "performance";
PCIE_ASPM_ON_BAT = "powersave";
PCIE_ASPM_ON_BAT = "laptop-battery-powersave";
START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
};
};
powerManagement.powertop.enable = true;
# services.tuned.enable = true;
services.thermald.enable = true;
services.upower = {
enable = true;
@@ -23,5 +26,8 @@
};
# one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock"
powerManagement.enable = true;
powerManagement = {
enable = true;
powertop.enable = true;
};
}

View File

@@ -23,7 +23,7 @@ in
};
settings = {
sync_to_monitor = "yes";
background_opacity = 0.5;
background_opacity = 0.6;
cursor_trail = 1;
### Blur is handled in hyprland config ###
# enable_background_blur = "true";