From 62a10aad63fbfec81f2d9fc4406f3fd4cce077d1 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 23 Apr 2024 21:36:07 +0200 Subject: [PATCH] maybe whatsapp fix --- systems/hetzner/matrix.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/systems/hetzner/matrix.nix b/systems/hetzner/matrix.nix index d521129..17db2cc 100644 --- a/systems/hetzner/matrix.nix +++ b/systems/hetzner/matrix.nix @@ -81,5 +81,33 @@ in services.mautrix-whatsapp = { enable = true; + settings = { + appservice = { + database = { + type = "postgres"; + uri = "postgresql:///mautrix_whatsapp?host=/run/postgresql"; + }; + ephemeral_events = false; + id = "whatsapp"; + }; + bridge = { + encryption = { + allow = true; + default = true; + require = true; + }; + history_sync = { + request_full_sync = true; + }; + mute_bridging = true; + permissions = { + "missing.ninja" = "user"; + }; + private_chat_portal_meta = true; + provisioning = { + shared_secret = "disable"; + }; + }; + }; }; }