From 3aa45471d8f225c61a3094c70680c70fd0811333 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Fri, 29 Dec 2023 19:40:10 +0100 Subject: [PATCH] thinkpad: power management improvements --- hosts/thinkpad/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/thinkpad/default.nix b/hosts/thinkpad/default.nix index 43f02db..fa41068 100755 --- a/hosts/thinkpad/default.nix +++ b/hosts/thinkpad/default.nix @@ -26,7 +26,6 @@ ''; tmp.useTmpfs = true; }; - # systemd.package = pkgs.systemd.override { withHomed = false; withUkify = true; }; environment.persistence."/nix/persist/system" = { directories = [ @@ -51,6 +50,7 @@ services = { blueman.enable = true; # bluetooth devmon.enable = true; # automount stuff + upower.enable = true; avahi = { enable = true; nssmdns4 = true; @@ -74,6 +74,7 @@ settings = { START_CHARGE_THRESH_BAT0 = 70; STOP_CHARGE_THRESH_BAT0 = 90; + RESTORE_DEVICE_STATE_ON_STARTUP = 1; }; };