fuuko: Add wordclock-dimmer
This commit is contained in:
parent
0c081d9805
commit
e8626ba27a
|
@ -11,6 +11,7 @@
|
|||
./services/prometheus.nix
|
||||
./services/scan.nix
|
||||
./services/torrent.nix
|
||||
./services/wordclock-dimmer.nix
|
||||
];
|
||||
|
||||
sbruder = {
|
||||
|
|
27
machines/fuuko/services/wordclock-dimmer.nix
Normal file
27
machines/fuuko/services/wordclock-dimmer.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue