178 current 2025-10-09 16:19:44 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -55,17 +55,16 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# enable the ${service} service
|
# enable the ${service} service
|
||||||
services.${service} = {
|
services.mosquitto.enable = true;
|
||||||
enable = true;
|
services.mosquitto.listeners = [
|
||||||
listeners = [
|
{
|
||||||
{
|
port = 1883;
|
||||||
acl = [ "pattern readwrite #" ]; # Allows read/write access to all topics
|
bindAddress = "0.0.0.0";
|
||||||
omitPasswordAuth = true; # Disables password authentication
|
allow_anonymous = true;
|
||||||
allow_anonymous = true; # Allows anonymous connections
|
aclFile = null; # optional
|
||||||
}
|
passwordFile = null; # optional
|
||||||
];
|
}
|
||||||
};
|
];
|
||||||
|
|
||||||
# override umask to make permissions work out
|
# override umask to make permissions work out
|
||||||
systemd.services.${service}.serviceConfig = {
|
systemd.services.${service}.serviceConfig = {
|
||||||
UMask = lib.mkForce "0007";
|
UMask = lib.mkForce "0007";
|
||||||
|
|||||||
Reference in New Issue
Block a user