control mosquitto version and data dir

This commit is contained in:
Cyryl Płotnicki 2023-11-03 19:17:39 +00:00
parent 718b0aa8fc
commit 069008dea5

View file

@ -16,6 +16,8 @@ in {
networking.firewall.allowedTCPPorts = [port 1883 8089]; networking.firewall.allowedTCPPorts = [port 1883 8089];
services.mosquitto = { services.mosquitto = {
enable = true; enable = true;
package = inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".mosquitto;
dataDir = "/data/mosquitto";
listeners = [ listeners = [
{ {
port = 1883; port = 1883;