spice up matrix a lil

This commit is contained in:
Anish Lakhwara
2022-10-09 23:32:31 +10:00
parent 0c1df223fc
commit 920335a80c
4 changed files with 104 additions and 186 deletions
+35
View File
@@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
{
services.mautrix-telegram = {
enable = true;
environmentFile = /etc/secrets/telegram.env; # TODO agenix
# TODO use pgsql
# The appservice is pre-configured to use SQLite by default. It's also possible to use PostgreSQL.
settings = {
homeserver = {
address = "https://sealight.xyz";
domain = "sealight.xyz";
};
appservice = {
provisioning.enabled = false;
id = "telegram";
bot_username = "telegrambridge";
public = {
enabled = false;
prefix = "/public";
external = "https://chat.sealight.xyz/public";
};
address = "http://localhost:18787";
port = 18787;
# The service uses SQLite by default, but it's also possible to use PostgreSQL instead:
#database = "postgresql:///mautrix-telegram?host=/run/postgresql";
};
bridge = {
relaybot.authless_portals = false;
permissions = {
"@aynish:sealight.xyz" = "admin";
};
};
};
};
}