diff --git a/module.nix b/module.nix index 7ae6d88..72b669a 100644 --- a/module.nix +++ b/module.nix @@ -101,6 +101,8 @@ in { ] ++ (map (topic: "--event-topic=${topic}") cfg.event-topics) ++ (optional cfg.verbose "--verbose"))); }; + unitConfig.ConditionPathExists = + [ cfg.mqtt.incoming.password-file cfg.mqtt.outgoing.password-file ]; }; }; }