2024-01-07 16:45:47 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
systemd.sleep.extraConfig = "HibernateDelaySec=1h";
|
|
|
|
|
|
|
|
services.logind = {
|
|
|
|
lidSwitch = "suspend-then-hibernate";
|
|
|
|
suspendKey = "suspend-then-hibernate";
|
|
|
|
powerKey = "suspend-then-hibernate";
|
2023-12-12 20:25:50 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|