diff options
author | makefu <github@syntax-fehler.de> | 2017-09-29 21:36:01 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-09-29 21:36:01 +0200 |
commit | 00bdcff9012b0369c1c2cb22e4cacbdf50d20b72 (patch) | |
tree | ca6b737cff01e2ddbe2a7b4eac7c9449ae7308b2 /makefu/2configs/deployment/led-fader.nix | |
parent | a4ffb72c5ccb7e81c9aa60125aeb71f16644ef47 (diff) |
ma led-fader: wait for mosquitto
Diffstat (limited to 'makefu/2configs/deployment/led-fader.nix')
-rw-r--r-- | makefu/2configs/deployment/led-fader.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/makefu/2configs/deployment/led-fader.nix b/makefu/2configs/deployment/led-fader.nix index 678370c69..4c17a1d50 100644 --- a/makefu/2configs/deployment/led-fader.nix +++ b/makefu/2configs/deployment/led-fader.nix @@ -29,11 +29,11 @@ in { environment = { NIX_PATH = "/var/src"; }; - # after = [ (lib.optional config.services.mosqitto.enable "mosquitto.service") ]; + after = [ "network-online.target" ] ++ (lib.optional config.services.mosquitto.enable "mosquitto.service"); wantedBy = [ "multi-user.target" ]; - after = [ "network-online.target" ]; serviceConfig = { # User = "nobody"; # need a user with permissions to run nix-shell + ExecStartPre = pkgs.writeDash "sleep.sh" "sleep 2"; ExecStart = "${pkg}/bin/ampel 4 ${pkg}/share/times.json"; PrivateTmp = true; }; |