summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-05-24 10:51:36 +0200
committermakefu <github@syntax-fehler.de>2017-05-24 10:51:36 +0200
commit01d31cb57ddcb38d64f1eeedc25ca70ad5913e4c (patch)
treef64470f70524422f340e05c9cf685529b59643b6
parentce43883b50db14453c21da35c8a6bd50422cfe06 (diff)
m 2 led-fader: wait for mosquitto if defined locally
-rw-r--r--makefu/2configs/deployment/led-fader.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefu/2configs/deployment/led-fader.nix b/makefu/2configs/deployment/led-fader.nix
index a18416497..e4d62ae77 100644
--- a/makefu/2configs/deployment/led-fader.nix
+++ b/makefu/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";