feat: refactor the modules/servers directory.
This commit is contained in:
parent
4e783c052b
commit
8b754d3a7e
69 changed files with 61 additions and 62 deletions
18
modules/servers/per-server/tyr/services/mosquitto.nix
Normal file
18
modules/servers/per-server/tyr/services/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