From c57cd12f4bf7600aa2b3daf7d196443070798bc6 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Thu, 25 Jul 2024 00:44:52 +0200 Subject: [PATCH] hostconfig/gandalf: Suspend then hibernate when closing the lid --- hostconfig/gandalf/nixos.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hostconfig/gandalf/nixos.nix b/hostconfig/gandalf/nixos.nix index b22f70e..b677df1 100644 --- a/hostconfig/gandalf/nixos.nix +++ b/hostconfig/gandalf/nixos.nix @@ -7,6 +7,7 @@ boot.resumeDevice = "/dev/disk/by-uuid/6993932f-5b29-4207-915a-2f185ec9f485"; + services.logind.lidSwitch = "suspend-then-hibernate"; systemd.sleep.extraConfig = '' HibernateDelaySec=1h '';