From 7cc36b40a12c61e3623b1ec5f4def46b63252505 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 12 Nov 2023 20:02:01 +0900 Subject: fix(modules/matrix-bridge): fix KeyError on encryption This commit fixes the issue where the client would fail to initialise if encryption was enabled, by pinning mautrix to 0.19, which is the last supported version. --- modules/services/matrix-bridge.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/services') diff --git a/modules/services/matrix-bridge.nix b/modules/services/matrix-bridge.nix index 96250f1..208f8ff 100644 --- a/modules/services/matrix-bridge.nix +++ b/modules/services/matrix-bridge.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: with lib; let @@ -63,6 +63,13 @@ in services.mautrix-signal = { enable = true; + package = pkgs.mautrix-signal.overrideAttrs (prev: { + propagatedBuildInputs = (lib.lists.remove pkgs.python3Packages.mautrix prev.propagatedBuildInputs) ++ [ + # mautrix-signal wants <0.20, but nix supplies >=0.20 + pkgs.python3Packages.mautrix_0_19 + ]; + }); + environmentFile = cfg.secrets.mautrix-envs; serviceDependencies = [ "matrix-synapse.service" ]; -- cgit 1.4.1