diff options
Diffstat (limited to 'hel.nix')
-rw-r--r-- | hel.nix | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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" = { |