fuuko: Add wordclock-dimmer

pull/48/head
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";
};
};
}