nicks-nix-config/hosts/Alaska/modules/mosquitto.nix

20 lines
303 B
Nix
Raw Normal View History

2024-08-18 17:05:00 -07:00
{ config, lib, pkgs, ... }:
{
services.mosquitto = {
enable = true;
listeners = [
{
acl = [ "pattern readwrite #" ];
omitPasswordAuth = true;
settings.allow_anonymous = true;
}
];
};
networking.firewall = {
allowedTCPPorts = [ 1883 ];
};
}