From b9a0952a84e70a2dc41cfb53a14d8346453676e7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 7 Aug 2016 11:36:08 +0200 Subject: sleep wants slimlock --- hel.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hel.nix b/hel.nix index 65f00fc8..1fd59bbc 100644 --- a/hel.nix +++ b/hel.nix @@ -307,12 +307,15 @@ environment.etc."sane.d/xerox_mfp.conf".text = "tcp printer.asgard.yggdrasil"; systemd.services."slimlock@" = { - wantedBy = [ "sleep.target" ]; serviceConfig = { Type = "simple"; User = "%I"; ExecStart = "${pkgs.slim}/bin/slimlock"; }; }; + systemd.targets."sleep" = { + after = "slimlock@gkleen.service"; + wants = "slimlock@gkleen.service"; + }; } -- cgit v1.2.3