From ade2e1caa0b8a6e8182a2bd54aa5dc82ac1c60b6 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 17 Oct 2023 15:33:04 -0700 Subject: [PATCH] Don't try to start if the passwords aren't present --- module.nix | 2 ++ 1 file changed, 2 insertions(+) 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 ]; }; }; }