mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:04:33 +00:00
Suspend system on lid close even on external power
This commit is contained in:
parent
953589075e
commit
77984ef59e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue