From edbbd3ca1bc158399a7a9450fbe11ffe513a6a98 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 27 Jun 2022 18:42:44 +0200 Subject: [PATCH] feat: use suspend-then-hibernate on power-button and idle timeout --- configuration.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 43af3bf..d6eee75 100644 --- a/configuration.nix +++ b/configuration.nix @@ -25,10 +25,10 @@ }; services.logind = { - lidSwitch = "suspend"; - lidSwitchExternalPower = "ignore"; + lidSwitch = "lock"; extraConfig = '' - HandlePowerKey=suspend + HandlePowerKey=suspend-then-hibernate + IdleAction=suspend-then-hibernate ''; };