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

40 lines
730 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2021-2023 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
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";
};
};
}