178 current 2025-10-09 16:19:44 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-09 19:18:19 -05:00
parent 228918dd93
commit 7393c5047c

View File

@@ -57,21 +57,20 @@ in
# enable the ${service} service # enable the ${service} service
services.${service} = { services.${service} = {
enable = true; enable = true;
listeners = { listeners = [{
mqtt = { port = cfg.port;
port = cfg.port; settings = {
settings = { allow_anonymous = false;
allow_anonymous = false; listener = 1883;
listener = 1883; listener = 9001;
listener = 9001; protocol = websockets;
protocol = websockets; persistence = true;
persistence = true; password_file = ${sec."mosquitto_password_file".path};
password_file = ${sec."mosquitto_password_file".path}; persistence_file = ${service}.db;
persistence_file = ${service}.db; persistence_location = cfg.data_dir;
persistence_location = cfg.data_dir;
};
}; };
}; };
];
}; };
# override umask to make permissions work out # override umask to make permissions work out