From 4109e317324e70014cdecf4c288986d45738da83 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 16 Sep 2023 17:33:43 +0200 Subject: [PATCH] lid switch handling --- modules/lid-switch-handling.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lid-switch-handling.nix b/modules/lid-switch-handling.nix index bd02d57..e356bcc 100644 --- a/modules/lid-switch-handling.nix +++ b/modules/lid-switch-handling.nix @@ -5,6 +5,6 @@ # https://unix.stackexchange.com/a/307498 # # services.logind.lidSwitch = "suspend"; - services.logind.lidSwitchExternalPower = "ignore"; + services.logind.lidSwitchExternalPower = "lock"; #services.logind.lidSwitchDocked = "ignore"; }