aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/myrtle/configuration.nix12
-rw-r--r--programs/default.nix4
-rw-r--r--services/default.nix2
3 files changed, 14 insertions, 4 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;
diff --git a/programs/default.nix b/programs/default.nix
index 2b12888..e28838b 100644
--- a/programs/default.nix
+++ b/programs/default.nix
@@ -23,13 +23,13 @@
23 programs = { 23 programs = {
24 msmtp.enable = true; 24 msmtp.enable = true;
25 home-manager.enable = true; 25 home-manager.enable = true;
26 mbsync.enable = true; 26 # mbsync.enable = true;
27 direnv = { 27 direnv = {
28 enable = true; 28 enable = true;
29 enableBashIntegration = true; 29 enableBashIntegration = true;
30 nix-direnv.enable = true; 30 nix-direnv.enable = true;
31 }; 31 };
32 autojump = { 32 zoxide = {
33 enable = true; 33 enable = true;
34 enableBashIntegration = true; 34 enableBashIntegration = true;
35 }; 35 };
diff --git a/services/default.nix b/services/default.nix
index dda2992..4e51e62 100644
--- a/services/default.nix
+++ b/services/default.nix
@@ -11,7 +11,7 @@
11 # ./picom.nix 11 # ./picom.nix
12 ./redshift.nix 12 ./redshift.nix
13 ./sxhkd.nix 13 ./sxhkd.nix
14 ./mbsync.nix 14 # ./bsync.nix
15 ]; 15 ];
16 16
17 services = { 17 services = {