summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-08-10 18:17:53 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-08-10 18:17:53 +0200
commit77d6d40361b2db339d6e4fb7744ebb2425e81e43 (patch)
tree8fe45b888eedbe251cfefa553c5154fb1ebdc365
parent827dc420d6ca37bab1c102eb942172c960cf9a17 (diff)
downloadnixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar
nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar.gz
nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar.bz2
nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.tar.xz
nixos-77d6d40361b2db339d6e4fb7744ebb2425e81e43.zip
hybrid-sleep seems buggy & pause dunst during lock
-rw-r--r--hel.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/hel.nix b/hel.nix
index 5ba63854..1466ea23 100644
--- a/hel.nix
+++ b/hel.nix
@@ -89,8 +89,8 @@
89 89
90 services = { 90 services = {
91 logind.extraConfig = '' 91 logind.extraConfig = ''
92 HandleLidSwitch=hybrid-sleep 92 HandleLidSwitch=sleep
93 HandleSuspendKey=hybrid-sleep 93 HandleSuspendKey=sleep
94 ''; 94 '';
95 95
96 openssh.enable = true; 96 openssh.enable = true;
@@ -312,6 +312,8 @@
312 Type = "simple"; 312 Type = "simple";
313 User = "%I"; 313 User = "%I";
314 ExecStart = "${pkgs.slim}/bin/slimlock"; 314 ExecStart = "${pkgs.slim}/bin/slimlock";
315 ExecStartPre = "${pkgs.psmisc}/bin/killall -SIGUSR1 dunst";
316 ExecStartPost = "${pkgs.psmisc}/bin/killall -SIGUSR2 dunst";
315 }; 317 };
316 }; 318 };
317 systemd.targets."sleep" = { 319 systemd.targets."sleep" = {