From fdf5b7bace8fcea1f44635e91e8f2ec18aaa64e3 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 13 Sep 2024 21:18:43 +0200 Subject: [PATCH] Don't hibernate by default --- home/services/hypridle.nix | 2 +- system/roles/workstation/services/logind.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/services/hypridle.nix b/home/services/hypridle.nix index 3353ec4..e1d0dff 100644 --- a/home/services/hypridle.nix +++ b/home/services/hypridle.nix @@ -47,7 +47,7 @@ in { # Enter suspend/sleep state (10 minutes) { timeout = 600; - on-timeout = "systemctl suspend-then-hibernate"; + on-timeout = "systemctl suspend"; } ]; }; diff --git a/system/roles/workstation/services/logind.nix b/system/roles/workstation/services/logind.nix index 2c20494..28a598b 100644 --- a/system/roles/workstation/services/logind.nix +++ b/system/roles/workstation/services/logind.nix @@ -11,10 +11,10 @@ in { # despite being under logind, this has nothing to do with login # it's about power management services.logind = { - lidSwitch = "suspend-then-hibernate"; + lidSwitch = "suspend"; lidSwitchExternalPower = "suspend"; extraConfig = '' - HandlePowerKey=suspend-then-hibernate + HandlePowerKey=suspend HibernateDelaySec=3600 ''; };