nixos-configuration/hosts/magnesium/services/mosquitto.nix
2023-07-10 22:02:39 +00:00

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 ];
}