1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

catullus: add cool-village telegram bridge

This commit is contained in:
Kierán Meinhardt
2019-08-08 14:12:21 +02:00
parent f1d37ebd05
commit d7a80e3c80

View File

@@ -74,6 +74,43 @@ in {
script = ''${pkgs.telegram-proverb}/bin/proverb_bot.py'';
serviceConfig.Restart = "always";
};
containers.cool-village-bridge = {
autoStart = true;
config = { lib, ... }: {
services.matterbridge = {
enable = true;
configPath =
let coolVillageToken = lib.strings.removeSuffix "\n" (builtins.readFile <secrets/telegram/cool_village.token>);
in ''
[general]
RemoteNickFormat = "[{NOPINGNICK}] "
[telegram]
[telegram.cool_village]
Token = "${coolVillageToken}"
[irc]
[irc.freenode]
Server = "irc.freenode.net:6667"
Nick = "cool_bridge"
[[gateway]]
name = "cool-village-bridge"
enable = true
[[gateway.inout]]
account = "irc.freenode"
channel = "##coolvillage"
[[gateway.inout]]
account = "telegram.cool_village"
channel = "-1001316977990"
'';
};
};
};
# systemd.services.telegram-horoscope = {
# wantedBy = [ "multi-user.target" ];
# description = "Telegram bot for generating horoscope charts";