20 lines
376 B
Nix
20 lines
376 B
Nix
args@{ config, lib, pkgs, custom-utils, ... }:
|
|
|
|
let
|
|
ports = import ../ports.nix args;
|
|
in
|
|
{
|
|
services.mosquitto = {
|
|
enable = true;
|
|
persistence = true;
|
|
listeners = [
|
|
{
|
|
port = ports.mosquitto.tcp;
|
|
settings = {
|
|
allow_anonymous = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ ports.mosquitto.tcp ];
|
|
}
|