diff options
author | makefu <github@syntax-fehler.de> | 2017-05-24 10:51:36 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-05-24 10:51:36 +0200 |
commit | 949dae543df7357f375ddae10cab1098978cb76f (patch) | |
tree | ae3a50a208be36ea661c53434e1a538e472d080a /2configs | |
parent | 7ee1c05f63db94a9a247347b94e9df4d587fbe18 (diff) |
m 2 led-fader: wait for mosquitto if defined locally
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/deployment/led-fader.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/2configs/deployment/led-fader.nix b/2configs/deployment/led-fader.nix index a18416497..e4d62ae77 100644 --- a/2configs/deployment/led-fader.nix +++ b/2configs/deployment/led-fader.nix @@ -29,7 +29,8 @@ in { environment = { NIX_PATH = "/var/src"; }; - wantedBy = [ "multi-user.target" ]; + after = [ (lib.optional config.services.mosqitto.enable "mosquitto.service") ]; + wantedBy = [ "multi-user.target" ]; serviceConfig = { # User = "nobody"; # need a user with permissions to run nix-shell ExecStart = "${pkg}/bin/ampel 4 ${pkg}/share/times.json"; |