From ba7544f02e1943b0149cc789ec532c5064ddf8de Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 5 Aug 2016 16:00:28 +0200 Subject: per-user slimlock service --- hel.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hel.nix') diff --git a/hel.nix b/hel.nix index 5f56ed93..bb8a1f07 100644 --- a/hel.nix +++ b/hel.nix @@ -305,5 +305,14 @@ environment.etc."sane.d/dll.conf".text = "xerox_mfp"; 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"; + }; + }; } -- cgit v1.2.3