ma led-fader: wait for mosquitto

This commit is contained in:
makefu 2017-09-29 21:36:01 +02:00
parent a4ffb72c5c
commit 00bdcff901
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -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;
};