From 228918dd936b0cd7149df202efe2e17a5d018391 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 9 Oct 2025 19:16:43 -0500 Subject: [PATCH] 178 current 2025-10-09 16:19:44 25.05.20251006.20c4598 6.12.50 * --- .../services/smarthome/mosquitto/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/modules/homelab/services/smarthome/mosquitto/default.nix b/modules/homelab/services/smarthome/mosquitto/default.nix index 16b4219..3849134 100644 --- a/modules/homelab/services/smarthome/mosquitto/default.nix +++ b/modules/homelab/services/smarthome/mosquitto/default.nix @@ -58,16 +58,18 @@ in services.${service} = { enable = true; 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; + 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; + }; }; }; };