Suspend system on lid close even on external power

This commit is contained in:
ItsDrike 2024-08-09 21:31:19 +02:00
parent 953589075e
commit 77984ef59e
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -12,7 +12,7 @@ in {
# it's about power management
services.logind = {
lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "lock";
lidSwitchExternalPower = "suspend";
extraConfig = ''
HandlePowerKey=suspend-then-hibernate
HibernateDelaySec=3600