mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 17:24:35 +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
|
# it's about power management
|
||||||
services.logind = {
|
services.logind = {
|
||||||
lidSwitch = "suspend-then-hibernate";
|
lidSwitch = "suspend-then-hibernate";
|
||||||
lidSwitchExternalPower = "lock";
|
lidSwitchExternalPower = "suspend";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
HandlePowerKey=suspend-then-hibernate
|
HandlePowerKey=suspend-then-hibernate
|
||||||
HibernateDelaySec=3600
|
HibernateDelaySec=3600
|
||||||
|
|
Loading…
Reference in a new issue