Don't hibernate by default

This commit is contained in:
ItsDrike 2024-09-13 21:18:43 +02:00
parent 7486b5259a
commit fdf5b7bace
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ in {
# Enter suspend/sleep state (10 minutes)
{
timeout = 600;
on-timeout = "systemctl suspend-then-hibernate";
on-timeout = "systemctl suspend";
}
];
};

View file

@ -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
'';
};