From 56f987e424d6af4f426c8157c64f3f9f6a11df83 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Wed, 20 Nov 2024 17:15:41 +0530 Subject: [PATCH] matrix: Enable rendezvous server This will allow sign-in and device verification using QR codes --- modules/matrix/default.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/matrix/default.nix b/modules/matrix/default.nix index 5e08ad0..b89ee90 100644 --- a/modules/matrix/default.nix +++ b/modules/matrix/default.nix @@ -264,6 +264,17 @@ in user_ips_max_age = "28d"; app_service_config_files = config.pub-solar-os.matrix.synapse.app-service-config-files; + + modules = [{ + module = "matrix_http_rendezvous_synapse.SynapseRendezvousModule"; + config = { + prefix = "/_synapse/client/org.matrix.msc3886/rendezvous"; + }; + }]; + + experimental_features = { + msc3886_endpoint = "/_synapse/client/org.matrix.msc3886/rendezvous"; + }; }; withJemalloc = true; @@ -275,9 +286,14 @@ in "redis" ]; - plugins = [ config.services.matrix-synapse.package.plugins.matrix-synapse-shared-secret-auth ]; + plugins = with config.services.matrix-synapse.package.plugins; [ + matrix-synapse-shared-secret-auth + matrix-http-rendezvous-synapse + ]; }; + systemd.services.matrix-synapse.environment.SYNAPSE_ASYNC_IO_REACTOR = "1"; + services.matrix-authentication-service = { enable = true; createDatabase = true;