From eb8aa0da6f876bea7908dfc20fd86ba2b4909a28 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Thu, 5 Oct 2023 22:35:00 +0200 Subject: [PATCH] feat: lock on lid close --- hosts/laptop/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index aa81f7a..886450e 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -68,7 +68,7 @@ services = { tlp.enable = true; # TLP and auto-cpufreq for power management - logind.lidSwitch = "ignore"; # Laptop does not go to sleep when lid is closed + logind.lidSwitch = "lock"; # lock on lid close auto-cpufreq.enable = true; blueman.enable = true; -- 2.48.1