From 56f987e424d6af4f426c8157c64f3f9f6a11df83 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Wed, 20 Nov 2024 17:15:41 +0530 Subject: [PATCH 1/2] 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; -- 2.44.2 From a59e57c532dea40ec15547b218f40ca0c222b2e5 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 20 Nov 2024 15:49:02 +0100 Subject: [PATCH 2/2] style: format using nixfmt-rfc-style --- modules/matrix/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/matrix/default.nix b/modules/matrix/default.nix index b89ee90..4ac540e 100644 --- a/modules/matrix/default.nix +++ b/modules/matrix/default.nix @@ -265,12 +265,14 @@ in 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"; - }; - }]; + 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"; -- 2.44.2