From 7fe56e78ea00ce1805d8d6e93626aca0aee22234 Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 18 Oct 2021 19:23:34 +0200 Subject: [PATCH] fixed mosquitto config --- hosts/mosquitto/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/mosquitto/configuration.nix b/hosts/mosquitto/configuration.nix index 4abab28..828b5d2 100644 --- a/hosts/mosquitto/configuration.nix +++ b/hosts/mosquitto/configuration.nix @@ -26,8 +26,15 @@ environment.systemPackages = with pkgs; []; services.mosquitto = { + users = { + victor = { + acl = ["topic readwrite #"]; + }; + }; enable = true; port = 1883; + host = "0.0.0.0"; + allowAnonymous = true; }; networking.firewall.allowedTCPPorts = [ config.services.mosquitto.port ];