From 04daefbeebd2099368469658b361d29e843c4a92 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 9 May 2023 16:26:07 -0700 Subject: [PATCH] nix doesn't have 'truthiness' --- module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.nix b/module.nix index 899c660..33e58ac 100644 --- a/module.nix +++ b/module.nix @@ -56,8 +56,8 @@ in { "--mqtt-port=${cfg.mqtt.port}" "--notification-topic=${cfg.notification-topic}" ] ++ (optional cfg.verbose "--verbose") - ++ (optional cfg.mqtt.user "--mqtt-user=${cfg.mqtt.user}") - ++ (optional cfg.mqtt.password-file + ++ (optional (cfg.mqtt.user != null) "--mqtt-user=${cfg.mqtt.user}") + ++ (optional (cfg.mqtt.password-file != null) "--mqtt-user=${cfg.mqtt.password-file}"))); }; };