mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:54:35 +00:00
Don't hibernate by default
This commit is contained in:
parent
7486b5259a
commit
fdf5b7bace
|
@ -47,7 +47,7 @@ in {
|
|||
# Enter suspend/sleep state (10 minutes)
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = "systemctl suspend-then-hibernate";
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -11,10 +11,10 @@ in {
|
|||
# despite being under logind, this has nothing to do with login
|
||||
# it's about power management
|
||||
services.logind = {
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
lidSwitch = "suspend";
|
||||
lidSwitchExternalPower = "suspend";
|
||||
extraConfig = ''
|
||||
HandlePowerKey=suspend-then-hibernate
|
||||
HandlePowerKey=suspend
|
||||
HibernateDelaySec=3600
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue