mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-23 13:19:33 -08:00
19 lines
303 B
Nix
19 lines
303 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
services.mosquitto = {
|
|
enable = true;
|
|
listeners = [
|
|
{
|
|
acl = [ "pattern readwrite #" ];
|
|
omitPasswordAuth = true;
|
|
settings.allow_anonymous = true;
|
|
}
|
|
];
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [ 1883 ];
|
|
};
|
|
|
|
}
|