summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-03-05 12:29:35 -0500
committerBen Sima <ben@bsima.me>2022-03-05 12:30:39 -0500
commit0f6fe9c10e8866ff7f33735223541cebcbd4f318 (patch)
tree051b40b3e818a6c2bb9752003793724cc8a2ecb5
parente5ca01074e8c5b5db68fd79a34bb74ceb7d27939 (diff)
try to fix laptop locking
-rw-r--r--machines/helium.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/machines/helium.nix b/machines/helium.nix
index 96f2eda..87e603c 100644
--- a/machines/helium.nix
+++ b/machines/helium.nix
@@ -90,7 +90,8 @@ in {
logind.lidSwitch = "suspend";
logind.lidSwitchDocked = "lock";
- logind.extraConfig = "IdleAction=lock";
+ logind.lidSwitchExternalPower = "lock";
+ #logind.extraConfig = "IdleAction=lock";
clight.enable = true;
clight.temperature.day = 5000;
@@ -112,8 +113,8 @@ in {
xserver.xautolock.locker = "${pkgs.xlockmore}/bin/xlock";
xserver.xautolock.nowlocker = "${pkgs.xlockmore}/bin/xlock"; # xautolock -locknow
xserver.xautolock.time = 5; # minutes
- xserver.xautolock.killer = "${pkgs.systemd}/bin/systemctl suspend";
- xserver.xautolock.killtime = 120; # minutes
+ #xserver.xautolock.killer = "${pkgs.systemd}/bin/systemctl suspend";
+ #xserver.xautolock.killtime = 120; # minutes
xserver.xautolock.enableNotifier = true;
xserver.xautolock.notify = 30; # seconds
xserver.xautolock.notifier = ''${pkgs.libnotify}/bin/notify-send "Locking in 30 seconds"'';