From e91187debe244b1595ac3163af002c00fbe0622b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 19 Dec 2019 23:01:34 +0100 Subject: hibernate sif on lid close --- sif.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sif.nix b/sif.nix index 6f10ef51..774d75a1 100644 --- a/sif.nix +++ b/sif.nix @@ -66,7 +66,7 @@ vnstat.enable = true; logind.extraConfig = '' - HandleLidSwitch=hybrid-sleep + HandleLidSwitch=hibernate LidSwitchIgnoreInhibited=no ''; @@ -362,7 +362,7 @@ [ systemd coreutils ]; script = '' - exec systemd-inhibit --what=handle-lid-switch:sleep --why="AC is connected" --mode=block sleep infinity + exec systemd-inhibit --what=handle-lid-switch --why="AC is connected" --mode=block sleep infinity ''; serviceConfig = { -- cgit v1.2.3