fixed mosquitto config
This commit is contained in:
parent
4287297903
commit
2a7ed507ed
1 changed files with 7 additions and 0 deletions
|
@ -26,8 +26,15 @@
|
||||||
environment.systemPackages = with pkgs; [];
|
environment.systemPackages = with pkgs; [];
|
||||||
|
|
||||||
services.mosquitto = {
|
services.mosquitto = {
|
||||||
|
users = {
|
||||||
|
victor = {
|
||||||
|
acl = ["topic readwrite #"];
|
||||||
|
};
|
||||||
|
};
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 1883;
|
port = 1883;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
allowAnonymous = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ config.services.mosquitto.port ];
|
networking.firewall.allowedTCPPorts = [ config.services.mosquitto.port ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue