fuuko: Add wordclock-dimmer

This commit is contained in:
Simon Bruder 2021-03-05 15:27:23 +01:00
parent 0c081d9805
commit e8626ba27a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 28 additions and 0 deletions

View file

@ -11,6 +11,7 @@
./services/prometheus.nix
./services/scan.nix
./services/torrent.nix
./services/wordclock-dimmer.nix
];
sbruder = {

View file

@ -0,0 +1,27 @@
{ config, ... }:
{
services.mosquitto = {
enable = true;
host = "0.0.0.0";
users = {
wordclock = {
acl = [
"topic readwrite wordclock/color/+"
];
password = "ymfQkXcEqGuk62SH";
};
};
};
networking.firewall.allowedTCPPorts = [ 1883 ];
services.wordclock-dimmer = {
enable = true;
mqtt = {
user = "wordclock";
password = config.services.mosquitto.users.wordclock.password;
host = "localhost";
};
};
}