nixos-config/machines/renge/services/wordclock-dimmer.nix

36 lines
596 B
Nix
Raw Permalink Normal View History

2021-03-05 15:27:23 +01:00
{ config, ... }:
let
password = "ymfQkXcEqGuk62S";
in
2021-03-05 15:27:23 +01:00
{
services.mosquitto = {
enable = true;
listeners = [
{
users = {
wordclock = {
acl = [
"readwrite wordclock/color/+"
];
inherit password;
};
};
settings = {
allow_anonymous = false;
};
}
];
2021-03-05 15:27:23 +01:00
};
networking.firewall.allowedTCPPorts = [ 1883 ];
services.wordclock-dimmer = {
enable = true;
mqtt = {
user = "wordclock";
inherit password;
2021-03-05 15:27:23 +01:00
host = "localhost";
};
};
}