{ lib, ... }: { services.homeAssistantConfig.mqtt = { # discovery = false; # for mosquitto broker = "127.0.0.1"; username = lib.fileContents ; password = lib.fileContents ; }; services.mosquitto = { enable = true; host = "0.0.0.0"; users = { homeassistant = { password = lib.fileContents ; acl = [ "topic readwrite #" ]; }; zigbee = { password = lib.fileContents ; acl = [ "topic readwrite #" ]; }; rust-iot = { password = "password" acl = [ "topic readwrite #" ]; }; }; }; }