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 ''; };