nixos-riscv/examples/mosquitto.nix

19 lines
357 B
Nix
Raw Normal View History

2022-07-13 08:45:04 +02:00
{
networking.firewall.allowedTCPPorts = [ 1883 ];
services.mosquitto = {
enable = true;
settings.max_keepalive = 300;
listeners = [
{
port = 1883;
omitPasswordAuth = true;
users = {};
settings = {
allow_anonymous = true;
};
acl = [ "topic readwrite #" ];
}
];
};
}