summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"'';