hibernation after 1h of sleep

This commit is contained in:
lucy 2026-10-12 12:17:19 +02:00
commit 3fb0ac4e5d

View file

@ -6,7 +6,11 @@
}: }:
{ {
services.logind.settings.Login.LidSwitch = "suspend-then-hibernate";
systemd.sleep.settings.Sleep = {
HibernateDelaySec = "1h";
SuspendState = "mem";
};
boot.resumeDevice = "/dev/disk/by-label/swap"; boot.resumeDevice = "/dev/disk/by-label/swap";
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.loader.limine = { boot.loader.limine = {