Simon Bruder
c918486622
This now requires authenticating with a valid password, which it apparently didn’t do before?
29 lines
531 B
Nix
29 lines
531 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.mosquitto = {
|
|
enable = true;
|
|
host = "0.0.0.0";
|
|
users = {
|
|
wordclock = {
|
|
acl = [
|
|
"topic readwrite wordclock/color/+"
|
|
];
|
|
password = "ymfQkXcEqGuk62SH";
|
|
};
|
|
};
|
|
checkPasswords = true;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 1883 ];
|
|
|
|
services.wordclock-dimmer = {
|
|
enable = true;
|
|
mqtt = {
|
|
user = "wordclock";
|
|
password = config.services.mosquitto.users.wordclock.password;
|
|
host = "localhost";
|
|
};
|
|
};
|
|
}
|