Make mqtt user/passwd optional

This commit is contained in:
2023-05-18 09:51:15 -07:00
parent 1ab07a53b1
commit bb25cc2c97
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ in {
"--mqtt-host=${cfg.mqtt.host}"
"--mqtt-port=${toString cfg.mqtt.port}"
"--notification-topic=${cfg.notification-topic}"
"--app-name=tattler"
] ++ (optional cfg.verbose "--verbose")
++ (optional (cfg.mqtt.user != null) "--mqtt-user=${cfg.mqtt.user}")
++ (optional (cfg.mqtt.password-file != null)