m 2 led-fader: wait for mosquitto if defined locally

This commit is contained in:
makefu 2017-05-24 10:51:36 +02:00
parent ce43883b50
commit 01d31cb57d
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

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