From 3fb0ac4e5d4d7ca6cbe197bd2ffbcbe7290fd479 Mon Sep 17 00:00:00 2001 From: lucy Date: Mon, 12 Oct 2026 12:17:19 +0200 Subject: [PATCH] hibernation after 1h of sleep --- configuration.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4fd13d5..aa61299 100755 --- a/configuration.nix +++ b/configuration.nix @@ -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.loader.efi.canTouchEfiVariables = true; boot.loader.limine = { @@ -85,7 +89,7 @@ XCURSOR_THEME = "macOS"; XCURSOR_SIZE = "24"; QT_QPA_PLATFORMTHEME = "qt6ct"; - + }; fonts.packages = with pkgs; [ jetbrains-mono