thinkpad: power management improvements

This commit is contained in:
Rouven Seifert 2023-12-29 19:40:10 +01:00
parent 8a6f689e6a
commit 3aa45471d8
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -26,7 +26,6 @@
''; '';
tmp.useTmpfs = true; tmp.useTmpfs = true;
}; };
# systemd.package = pkgs.systemd.override { withHomed = false; withUkify = true; };
environment.persistence."/nix/persist/system" = { environment.persistence."/nix/persist/system" = {
directories = [ directories = [
@ -51,6 +50,7 @@
services = { services = {
blueman.enable = true; # bluetooth blueman.enable = true; # bluetooth
devmon.enable = true; # automount stuff devmon.enable = true; # automount stuff
upower.enable = true;
avahi = { avahi = {
enable = true; enable = true;
nssmdns4 = true; nssmdns4 = true;
@ -74,6 +74,7 @@
settings = { settings = {
START_CHARGE_THRESH_BAT0 = 70; START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 90; STOP_CHARGE_THRESH_BAT0 = 90;
RESTORE_DEVICE_STATE_ON_STARTUP = 1;
}; };
}; };