diff --git a/nixos/boxes/bolty/home-assistant.nix b/nixos/boxes/bolty/home-assistant.nix index f53fa413..dc46a828 100644 --- a/nixos/boxes/bolty/home-assistant.nix +++ b/nixos/boxes/bolty/home-assistant.nix @@ -7,7 +7,20 @@ let in { imports = [ ../nginx.nix ./virtualisation.nix ]; - networking.firewall.allowedTCPPorts = [ port ]; + networking.firewall.allowedTCPPorts = [ port 1883 ]; + services.mosquitto = { + enable = true; + listeners = [ + { + port = 1883; + omitPasswordAuth = true; + users = {}; + settings = { + allow_anonymous = true; + }; + acl = [ "topic readwrite #" ]; + }]; + }; services.nginx = { virtualHosts = {