From 220ce9c5c35b528c5f88cb0d94294754b3049101 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Thu, 29 Dec 2022 12:12:26 +0100 Subject: [PATCH] services: matrix mautrix-telegram restructure secrets --- modules/services/server/matrix.nix | 10 ++-------- secrets/services/matrix/mautrix-telegram.age | Bin 1427 -> 1565 bytes 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/services/server/matrix.nix b/modules/services/server/matrix.nix index 6a3cf2a..8e289ce 100644 --- a/modules/services/server/matrix.nix +++ b/modules/services/server/matrix.nix @@ -126,7 +126,7 @@ in { services = { mautrix-telegram = { enable = true; - environmentFile = config.age.secrets."services/matrix/mautrix-telegram.env".path + environmentFile = config.age.secrets."services/matrix/mautrix-telegram.env".path; settings = { homeserver = { address = "http://localhost:8008"; @@ -134,7 +134,6 @@ in { }; appservice = { hostname = "127.0.0.1"; - database = "postgres://${mautrixteledb}"; provisioning.enabled = false; id = "telegram"; public = { @@ -146,7 +145,7 @@ in { startup_sync = true; public_portals = true; double_puppet_server_map = { - "kabtop.de: https://kabtop.de"; + "kabtop.de" = "https://kabtop.de"; }; encryption = { allow = true; @@ -164,11 +163,6 @@ in { "@kabbone:kabtop.de" = "admin"; }; }; - telegram = { - api_id = ${telegram-api_id}; - api_hash = ${telegram-api_hash}; - bot_token = ${telegram-bot_token}; - }; }; }; }; diff --git a/secrets/services/matrix/mautrix-telegram.age b/secrets/services/matrix/mautrix-telegram.age index 4bb8216d1898c25c73944e86ff5aed7833467fbb..352b743692b7177c72083af5f23c71c50b9a6ac9 100644 GIT binary patch literal 1565 zcmY+?{qNia0mt#ggoq_DBuWB|cs@kT_jc=Dua6p$-nDnVUZ1Yl_S)Or?6tjKuf4X{ zUa#L4iQ;B-Jeh2=0h<$sIt;MzlngP5WI|#TGn|nL!34()3Q8m<2tGvk!5{n!Uhm}d zFmr`m#$b+kYgX?IL=|4* zT6;CyESf^>wjmiYjrB^RG!F)_NGK=0AxQYMH9K9jvWB>JsBYFG#eNpf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