examples: init

This commit is contained in:
matthewcroughan
2022-07-13 07:45:04 +01:00
parent d04dbc0feb
commit c58d08725f
3 changed files with 45 additions and 0 deletions

18
examples/mosquitto.nix Normal file
View File

@@ -0,0 +1,18 @@
{
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 #" ];
}
];
};
}