summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-12-19 23:01:34 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2019-12-19 23:01:34 +0100
commite91187debe244b1595ac3163af002c00fbe0622b (patch)
tree300bb296ccdc3a7fbd1bbaa8d5e9ca0fd5ce17ca
parent71568933eb2ff05700dfa444ecbd2b87668ea958 (diff)
downloadnixos-e91187debe244b1595ac3163af002c00fbe0622b.tar
nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar.gz
nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar.bz2
nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar.xz
nixos-e91187debe244b1595ac3163af002c00fbe0622b.zip
hibernate sif on lid close
-rw-r--r--sif.nix4
1 files 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 @@
66 vnstat.enable = true; 66 vnstat.enable = true;
67 67
68 logind.extraConfig = '' 68 logind.extraConfig = ''
69 HandleLidSwitch=hybrid-sleep 69 HandleLidSwitch=hibernate
70 LidSwitchIgnoreInhibited=no 70 LidSwitchIgnoreInhibited=no
71 ''; 71 '';
72 72
@@ -362,7 +362,7 @@
362 [ systemd coreutils ]; 362 [ systemd coreutils ];
363 363
364 script = '' 364 script = ''
365 exec systemd-inhibit --what=handle-lid-switch:sleep --why="AC is connected" --mode=block sleep infinity 365 exec systemd-inhibit --what=handle-lid-switch --why="AC is connected" --mode=block sleep infinity
366 ''; 366 '';
367 367
368 serviceConfig = { 368 serviceConfig = {