nix doesn't have 'truthiness'

This commit is contained in:
niten 2023-05-09 16:26:07 -07:00
parent 6cf08b838b
commit 04daefbeeb
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ in {
"--mqtt-port=${cfg.mqtt.port}" "--mqtt-port=${cfg.mqtt.port}"
"--notification-topic=${cfg.notification-topic}" "--notification-topic=${cfg.notification-topic}"
] ++ (optional cfg.verbose "--verbose") ] ++ (optional cfg.verbose "--verbose")
++ (optional cfg.mqtt.user "--mqtt-user=${cfg.mqtt.user}") ++ (optional (cfg.mqtt.user != null) "--mqtt-user=${cfg.mqtt.user}")
++ (optional cfg.mqtt.password-file ++ (optional (cfg.mqtt.password-file != null)
"--mqtt-user=${cfg.mqtt.password-file}"))); "--mqtt-user=${cfg.mqtt.password-file}")));
}; };
}; };