hackens-org-configurations/hosts/hackens-org/mosquitto.nix

22 lines
355 B
Nix
Raw Normal View History

2022-04-10 17:56:04 +02:00
{ ... }:
let
port = 1883;
in
{
services.mosquitto = {
enable = true;
logType = [ "all" ];
listeners = [
{
address = "0.0.0.0";
2022-04-15 00:27:42 +02:00
acl = [ "topic readwrite #" ];
2022-04-10 17:56:04 +02:00
port = port;
settings = {
allow_anonymous = true;
};
}
];
};
networking.firewall.allowedTCPPorts = [ port ];
}