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

36 lines
614 B
Nix
Raw 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
};
2023-12-31 16:36:16 +01:00
networking.firewall.interfaces.br-iot.allowedTCPPorts = [ 1883 ];
2021-03-05 15:27:23 +01:00
services.wordclock-dimmer = {
enable = true;
mqtt = {
user = "wordclock";
inherit password;
2021-03-05 15:27:23 +01:00
host = "localhost";
};
};
}