summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/matterbridge.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-05-27 00:35:31 +0200
committermakefu <github@syntax-fehler.de>2022-05-27 00:35:31 +0200
commit0b84135ffd69750974fd5ad7721b64ccd772a4a6 (patch)
tree5093b06989d9cba87328c6b27261e2e1b9b9ef01 /krebs/2configs/matterbridge.nix
parent9ef120c4ed528cb60a9348c8474c2e23912d4960 (diff)
parente92a58fe0f4edbf047ff4dd89866ae0991d37350 (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/2configs/matterbridge.nix')
-rw-r--r--krebs/2configs/matterbridge.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/krebs/2configs/matterbridge.nix b/krebs/2configs/matterbridge.nix
new file mode 100644
index 000000000..9c0908def
--- /dev/null
+++ b/krebs/2configs/matterbridge.nix
@@ -0,0 +1,49 @@
+{ pkgs, lib, ... }: {
+ services.matterbridge = {
+ enable = true;
+ configPath = let
+ bridgeBotToken = lib.strings.fileContents <secrets/telegram.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;
+ };
+ gateway = [
+ {
+ name = "krebs-bridge";
+ enable = true;
+ inout = [
+ {
+ account = "irc.hackint";
+ channel = "#krebs";
+ }
+ {
+ account = "telegram.krebs";
+ channel = "-330372458";
+ }
+ {
+ account = "mumble.lassulus";
+ channel = 6; # "nixos"
+ }
+ ];
+ }
+ ];
+ });
+ };
+}