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
|
||||
services.${service} = {
|
||||
enable = true;
|
||||
listeners = [
|
||||
services.mosquitto.enable = true;
|
||||
services.mosquitto.listeners = [
|
||||
{
|
||||
acl = [ "pattern readwrite #" ]; # Allows read/write access to all topics
|
||||
omitPasswordAuth = true; # Disables password authentication
|
||||
allow_anonymous = true; # Allows anonymous connections
|
||||
port = 1883;
|
||||
bindAddress = "0.0.0.0";
|
||||
allow_anonymous = true;
|
||||
aclFile = null; # optional
|
||||
passwordFile = null; # optional
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# override umask to make permissions work out
|
||||
systemd.services.${service}.serviceConfig = {
|
||||
UMask = lib.mkForce "0007";
|
||||
|
||||
Reference in New Issue
Block a user