services: matrix mautrix-telegram restructure secrets

This commit is contained in:
Kabbone 2022-12-29 12:12:26 +01:00
parent 2cba5cc41e
commit 220ce9c5c3
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 2 additions and 8 deletions

View File

@ -126,7 +126,7 @@ in {
services = { services = {
mautrix-telegram = { mautrix-telegram = {
enable = true; enable = true;
environmentFile = config.age.secrets."services/matrix/mautrix-telegram.env".path environmentFile = config.age.secrets."services/matrix/mautrix-telegram.env".path;
settings = { settings = {
homeserver = { homeserver = {
address = "http://localhost:8008"; address = "http://localhost:8008";
@ -134,7 +134,6 @@ in {
}; };
appservice = { appservice = {
hostname = "127.0.0.1"; hostname = "127.0.0.1";
database = "postgres://${mautrixteledb}";
provisioning.enabled = false; provisioning.enabled = false;
id = "telegram"; id = "telegram";
public = { public = {
@ -146,7 +145,7 @@ in {
startup_sync = true; startup_sync = true;
public_portals = true; public_portals = true;
double_puppet_server_map = { double_puppet_server_map = {
"kabtop.de: https://kabtop.de"; "kabtop.de" = "https://kabtop.de";
}; };
encryption = { encryption = {
allow = true; allow = true;
@ -164,11 +163,6 @@ in {
"@kabbone:kabtop.de" = "admin"; "@kabbone:kabtop.de" = "admin";
}; };
}; };
telegram = {
api_id = ${telegram-api_id};
api_hash = ${telegram-api_hash};
bot_token = ${telegram-bot_token};
};
}; };
}; };
}; };