From cef9d83d32969fd5cba9f4d511b83a1f68b01f90 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Sat, 8 Nov 2025 13:21:41 +0100 Subject: [PATCH] hostconfig/gandalf: Re-enable hibernation --- hostconfig/gandalf/nixos.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hostconfig/gandalf/nixos.nix b/hostconfig/gandalf/nixos.nix index 00eb64b..fbe956b 100644 --- a/hostconfig/gandalf/nixos.nix +++ b/hostconfig/gandalf/nixos.nix @@ -10,7 +10,10 @@ in boot.resumeDevice = swap; - services.logind.settings.Login.HandleLidSwitch = "suspend"; + services.logind.settings.Login.HandleLidSwitch = "suspend-then-hibernate"; + systemd.sleep.extraConfig = '' + HibernateDelaySec=1h + ''; swapDevices = [ {