18 lines
303 B
Nix
18 lines
303 B
Nix
{ config, lib, pkgs, ... }:
|
|
let port = 1883;
|
|
in
|
|
{
|
|
services.mosquitto = {
|
|
enable = true;
|
|
persistence = true;
|
|
listeners = [
|
|
{
|
|
port = port;
|
|
settings = {
|
|
allow_anonymous = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ port ];
|
|
}
|