diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-08-07 11:36:08 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-08-07 11:36:08 +0200 |
commit | b9a0952a84e70a2dc41cfb53a14d8346453676e7 (patch) | |
tree | 3f2329d5cdfd8a3e70ee69742c5b7df222f6ba42 | |
parent | 4821ee078ca831a846dca22fa93f7d071bbaaf43 (diff) | |
download | nixos-b9a0952a84e70a2dc41cfb53a14d8346453676e7.tar nixos-b9a0952a84e70a2dc41cfb53a14d8346453676e7.tar.gz nixos-b9a0952a84e70a2dc41cfb53a14d8346453676e7.tar.bz2 nixos-b9a0952a84e70a2dc41cfb53a14d8346453676e7.tar.xz nixos-b9a0952a84e70a2dc41cfb53a14d8346453676e7.zip |
sleep wants slimlock
-rw-r--r-- | hel.nix | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -307,12 +307,15 @@ | |||
307 | environment.etc."sane.d/xerox_mfp.conf".text = "tcp printer.asgard.yggdrasil"; | 307 | environment.etc."sane.d/xerox_mfp.conf".text = "tcp printer.asgard.yggdrasil"; |
308 | 308 | ||
309 | systemd.services."slimlock@" = { | 309 | systemd.services."slimlock@" = { |
310 | wantedBy = [ "sleep.target" ]; | ||
311 | serviceConfig = { | 310 | serviceConfig = { |
312 | Type = "simple"; | 311 | Type = "simple"; |
313 | User = "%I"; | 312 | User = "%I"; |
314 | ExecStart = "${pkgs.slim}/bin/slimlock"; | 313 | ExecStart = "${pkgs.slim}/bin/slimlock"; |
315 | }; | 314 | }; |
316 | }; | 315 | }; |
316 | systemd.targets."sleep" = { | ||
317 | after = "slimlock@gkleen.service"; | ||
318 | wants = "slimlock@gkleen.service"; | ||
319 | }; | ||
317 | } | 320 | } |
318 | 321 | ||