From 40b323dcfd08007424b389cc60ae1145cac0a224 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Mon, 5 Jan 2026 09:00:48 -0800 Subject: [PATCH] Revert "Use direct hibernate on nix-book lid close" This reverts commit 2c70504c433fcc2450b63fc46740a6f455a2aeea. --- machines/nix-book/configuration.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/machines/nix-book/configuration.nix b/machines/nix-book/configuration.nix index 7a8c5f3..dd07c54 100644 --- a/machines/nix-book/configuration.nix +++ b/machines/nix-book/configuration.nix @@ -40,14 +40,15 @@ boot.initrd.luks.devices."luks-b614167b-9045-4234-a441-ac6f60a96d81".device = "/dev/disk/by-uuid/b614167b-9045-4234-a441-ac6f60a96d81"; - # S3 deep sleep broken on Alder Lake - use direct hibernate on lid close services.logind.settings.Login = { - HandleLidSwitch = "hibernate"; - HandleLidSwitchExternalPower = "hibernate"; - HandleLidSwitchDocked = "hibernate"; + HandleLidSwitch = "suspend-then-hibernate"; HandlePowerKey = "hibernate"; HandlePowerKeyLongPress = "poweroff"; }; + systemd.sleep.extraConfig = '' + HibernateDelaySec=30m + SuspendState=mem + ''; networking.hostName = "nix-book"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.