From f34ba949ca4db53a32599ef8fbb72dec635c3fe6 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 17 Jan 2020 00:20:23 +1300 Subject: [PATCH] suspend: ignore when closing laptop --- system/desktop/suspend.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/desktop/suspend.nix b/system/desktop/suspend.nix index 58b934a..9936d56 100644 --- a/system/desktop/suspend.nix +++ b/system/desktop/suspend.nix @@ -12,16 +12,16 @@ in { DISPLAY = ":${toString display}"; }; script = '' ${pkgs.xlockmore}/bin/xlock -mode life1d -size 1 & - sleep 4 + sleep 1 ''; serviceConfig = { SyslogIdentifier = "screenlock"; - # Type = "simple"; + #Type = "simple"; Type = "forking"; User = config.users.users.mainUser.name; }; }; - services.logind.lidSwitch = "suspend"; + services.logind.lidSwitch = "ignore"; }