mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 06:35:28 -08:00
20 lines
303 B
Nix
20 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 ];
|
||
|
};
|
||
|
|
||
|
}
|