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.