NixOS-Configuration/hibernation.nix

6 lines
150 B
Nix
Raw Permalink Normal View History

2023-06-30 22:46:44 +00:00
{ config, ... }:
2023-06-30 22:38:56 +00:00
{
services.logind.lidSwitch = "suspend-then-hibernate";
environment.etc."systemd/sleep.conf".text = "HibernateDelaySec=30min";
}