add power switch handling to host specific config

This commit is contained in:
2025-11-01 17:51:03 -05:00
parent 4078ed0d21
commit 458090e795
2 changed files with 6 additions and 7 deletions
-7
View File
@@ -34,13 +34,6 @@
# allow proprietary packages
nixpkgs.config.allowUnfree = true;
# fix power buttons
services.logind.settings.Login = {
HandlePowerKey = "suspend";
HandleLidSwitch = "suspend";
#HibernateDelaySec = "30min";
};
# power management
services.autoaspm.enable = true;
powerManagement.powertop.enable = true;
+6
View File
@@ -22,6 +22,12 @@
tailscale.enable = true;
};
# fix power buttons
services.logind.settings.Login = {
HandlePowerKey = "suspend";
HandleLidSwitch = "suspend";
#HibernateDelaySec = "30min";
};
# boot (systemd is going on me)
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know