From 7393c5047c69faacb2d95e6482c3cb3e1722df3e Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 9 Oct 2025 19:18:19 -0500 Subject: [PATCH] 178 current 2025-10-09 16:19:44 25.05.20251006.20c4598 6.12.50 * --- .../services/smarthome/mosquitto/default.nix | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/modules/homelab/services/smarthome/mosquitto/default.nix b/modules/homelab/services/smarthome/mosquitto/default.nix index 3849134..764a763 100644 --- a/modules/homelab/services/smarthome/mosquitto/default.nix +++ b/modules/homelab/services/smarthome/mosquitto/default.nix @@ -57,21 +57,20 @@ in # enable the ${service} service services.${service} = { enable = true; - listeners = { - mqtt = { - port = cfg.port; - settings = { - allow_anonymous = false; - listener = 1883; - listener = 9001; - protocol = websockets; - persistence = true; - password_file = ${sec."mosquitto_password_file".path}; - persistence_file = ${service}.db; - persistence_location = cfg.data_dir; - }; + listeners = [{ + port = cfg.port; + settings = { + allow_anonymous = false; + listener = 1883; + listener = 9001; + protocol = websockets; + persistence = true; + password_file = ${sec."mosquitto_password_file".path}; + persistence_file = ${service}.db; + persistence_location = cfg.data_dir; }; }; + ]; }; # override umask to make permissions work out