diff --git a/hosts/hackens-org/mosquitto.nix b/hosts/hackens-org/mosquitto.nix new file mode 100644 index 0000000..db4ff3c --- /dev/null +++ b/hosts/hackens-org/mosquitto.nix @@ -0,0 +1,20 @@ +{ ... }: +let + port = 1883; +in +{ + services.mosquitto = { + enable = true; + logType = [ "all" ]; + listeners = [ + { + address = "0.0.0.0"; + port = port; + settings = { + allow_anonymous = true; + }; + } + ]; + }; + networking.firewall.allowedTCPPorts = [ port ]; +}