From ed3046e18aac1fa0b643774e5f95f4c9b8397a9e Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 5 Nov 2025 23:14:26 -0600 Subject: [PATCH] wrap up suspend-then-hibernate --- hosts/nixos/yveltal/configuration.nix | 5 ++--- users/blake/dots/desktop/hypr/default.nix | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/nixos/yveltal/configuration.nix b/hosts/nixos/yveltal/configuration.nix index f20b027..3614b55 100644 --- a/hosts/nixos/yveltal/configuration.nix +++ b/hosts/nixos/yveltal/configuration.nix @@ -43,13 +43,12 @@ # fix power buttons services.logind.settings.Login = { - #HandlePowerKey = "suspend"; - #HandleLidSwitch = "suspend"; HandlePowerKey = "suspend-then-hibernate"; HandleLidSwitch = "suspend-then-hibernate"; }; + # sets the delay before hibernation for ^ systemd.sleep.extraConfig = '' - HibernateDelaySec=180 + HibernateDelaySec=1800 ''; # boot (systemd is growing on me) diff --git a/users/blake/dots/desktop/hypr/default.nix b/users/blake/dots/desktop/hypr/default.nix index 24c8c06..30c46a3 100644 --- a/users/blake/dots/desktop/hypr/default.nix +++ b/users/blake/dots/desktop/hypr/default.nix @@ -353,7 +353,7 @@ in { # --- suspend timeout --- { timeout = 1800; # 30 min - on-timeout = "systemctl suspend"; # suspend computer + on-timeout = "systemctl suspend-then-hibernate"; # suspend computer } # --- keyboard backlight (optional) ---