diff options
-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 | ||