mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
thinkpad: power management improvements
This commit is contained in:
parent
8a6f689e6a
commit
3aa45471d8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue