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

60 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2020-11-01 09:44:50 +01:00
{
2022-03-10 21:52:12 +01:00
pkgs,
lib,
...
2025-12-27 22:22:54 +01:00
}:
{
2020-11-01 09:44:50 +01:00
services.matterbridge = {
enable = false;
2025-12-27 22:22:54 +01:00
configPath =
let
bridgeBotToken = lib.strings.fileContents <system-secrets/telegram/krebs.token>;
in
toString (
(pkgs.formats.toml { }).generate "config.toml" {
general = {
RemoteNickFormat = "[{NICK}] ";
Charset = "utf-8";
};
telegram.krebs.Token = bridgeBotToken;
irc =
let
Nick = "ponte";
in
{
hackint = {
Server = "irc.hackint.org:6697";
UseTLS = true;
inherit Nick;
};
};
mumble.lassulus = {
Server = "lassul.us:64738";
Nick = "krebs_bridge";
SkipTLSVerify = true;
2022-03-10 21:52:12 +01:00
};
2025-12-27 22:22:54 +01:00
gateway = [
{
name = "krebs-bridge";
enable = true;
inout = [
{
account = "irc.hackint";
channel = "#krebs";
}
{
account = "telegram.krebs";
channel = "-330372458";
}
{
account = "mumble.lassulus";
channel = 6; # "nixos"
}
];
}
];
}
);
2020-11-01 09:44:50 +01:00
};
}