2017-05-02 14:04:39 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.mosquitto = {
|
|
|
|
enable = true;
|
2021-12-04 19:08:15 +01:00
|
|
|
persistence = false;
|
|
|
|
settings.max_keepalive = 60;
|
|
|
|
listeners = [
|
|
|
|
{
|
|
|
|
port = 1883;
|
|
|
|
omitPasswordAuth = true;
|
|
|
|
users = {};
|
|
|
|
settings = {
|
|
|
|
allow_anonymous = true;
|
|
|
|
};
|
|
|
|
acl = [ "topic readwrite #" "pattern readwrite #" ];
|
|
|
|
}
|
|
|
|
];
|
2017-05-02 14:04:39 +02:00
|
|
|
};
|
|
|
|
}
|