From 21e8d50714f432cafd424a94521788b7dcfc61dc Mon Sep 17 00:00:00 2001 From: Ahwx Date: Thu, 18 Jul 2024 19:37:24 +0200 Subject: [PATCH] feat: adds basic `mautrix-whatsapp` configuration --- modules/services/matrix/default.nix | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/modules/services/matrix/default.nix b/modules/services/matrix/default.nix index f8a83fd..482ee19 100644 --- a/modules/services/matrix/default.nix +++ b/modules/services/matrix/default.nix @@ -134,5 +134,37 @@ in { ]; }; }; + + 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 = { + "example.com" = "user"; + }; + private_chat_portal_meta = true; + provisioning = { + shared_secret = "disable"; + }; + }; + }; + }; }; }