mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 01:49:41 +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)
|
# Enter suspend/sleep state (10 minutes)
|
||||||
{
|
{
|
||||||
timeout = 600;
|
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
|
# despite being under logind, this has nothing to do with login
|
||||||
# it's about power management
|
# it's about power management
|
||||||
services.logind = {
|
services.logind = {
|
||||||
lidSwitch = "suspend-then-hibernate";
|
lidSwitch = "suspend";
|
||||||
lidSwitchExternalPower = "suspend";
|
lidSwitchExternalPower = "suspend";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
HandlePowerKey=suspend-then-hibernate
|
HandlePowerKey=suspend
|
||||||
HibernateDelaySec=3600
|
HibernateDelaySec=3600
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue