{ systemd.sleep.extraConfig = '' HibernateDelaySec=1d ''; services.logind = { powerKey = "hibernate"; lidSwitch = "suspend-then-hibernate"; # won't happen there's no battery anyway lidSwitchDocked = "ignore"; }; }