feat(tyr): add mosquitto.
This commit is contained in:
parent
8136075cf5
commit
5611a27d61
2 changed files with 19 additions and 0 deletions
|
|
@ -9,5 +9,6 @@
|
||||||
./dns.nix
|
./dns.nix
|
||||||
./traefik.nix
|
./traefik.nix
|
||||||
./home-assistant.nix
|
./home-assistant.nix
|
||||||
|
./mosquitto.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
modules/servers/tyr/mosquitto.nix
Normal file
18
modules/servers/tyr/mosquitto.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
services.mosquitto = {
|
||||||
|
enable = true;
|
||||||
|
listeners = [
|
||||||
|
{
|
||||||
|
users.crony = {
|
||||||
|
acl = ["readwrite #"];
|
||||||
|
hashedPassword = "$7$101$3MqAfbz8vp9VMrMG$nvHnl1fEX1H3JeH98JGBjdBiKZ02RW7kSBMSQK2fHzU+3hinebJxW8QMpdaH9TYKoeM9PS0y+pzvYnrk0/tkIQ==";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [1883];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue