diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/myrtle/configuration.nix | 12 |
1 files changed, 11 insertions, 1 deletions
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 @@ | |||
4 | imports = | 4 | imports = |
5 | [ | 5 | [ |
6 | ./hardware-configuration.nix | 6 | ./hardware-configuration.nix |
7 | ../../services/suspend.nix | ||
7 | ]; | 8 | ]; |
8 | 9 | ||
9 | boot.loader.systemd-boot.enable = true; | 10 | boot.loader.systemd-boot.enable = true; |
@@ -124,7 +125,16 @@ | |||
124 | HandlePowerKeyLongPress=poweroff | 125 | HandlePowerKeyLongPress=poweroff |
125 | ''; | 126 | ''; |
126 | 127 | ||
127 | powerManagement.powertop.enable = false; | 128 | powerManagement.powertop.enable = true; |
129 | services.batteryNotifier = { | ||
130 | enable = true; | ||
131 | notifyCapacity = 20; | ||
132 | suspendCapacity = 5; | ||
133 | }; | ||
134 | |||
135 | systemd.sleep.extraConfig = '' | ||
136 | HibernateMode=shutdown | ||
137 | ''; | ||
128 | 138 | ||
129 | users.users.np = { | 139 | users.users.np = { |
130 | isNormalUser = true; | 140 | isNormalUser = true; |