aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-01-23 03:40:45 +0000
committerAkshay <[email protected]>2023-01-23 03:40:45 +0000
commit8f7bc7a76be215d89a080770777ee5293437789a (patch)
tree05017b0bf9a7f62ec9854c5eb36037d99d3a2479 /hosts
parent94cb0bbb73b489d32495566ceade49421f878d78 (diff)
re-enable powertop, fix reboot on hibernate
Diffstat (limited to 'hosts')
-rw-r--r--hosts/myrtle/configuration.nix12
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;