From 8f7bc7a76be215d89a080770777ee5293437789a Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 23 Jan 2023 09:10:45 +0530 Subject: re-enable powertop, fix reboot on hibernate --- hosts/myrtle/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'hosts/myrtle/configuration.nix') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 7986e9c..ff64e80 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix + ../../services/suspend.nix ]; boot.loader.systemd-boot.enable = true; @@ -124,7 +125,16 @@ HandlePowerKeyLongPress=poweroff ''; - powerManagement.powertop.enable = false; + powerManagement.powertop.enable = true; + services.batteryNotifier = { + enable = true; + notifyCapacity = 20; + suspendCapacity = 5; + }; + + systemd.sleep.extraConfig = '' + HibernateMode=shutdown + ''; users.users.np = { isNormalUser = true; -- cgit v1.2.3