hackens-org-configurations/hosts/hackens-org/mosquitto.nix
2022-04-13 17:00:40 +02:00

20 lines
316 B
Nix

{ ... }:
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 ];
}