about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-11-12 20:02:01 +0900
committersefidel <contact@sefidel.net>2023-11-12 20:07:01 +0900
commit7cc36b40a12c61e3623b1ec5f4def46b63252505 (patch)
treeb6f7dafcd56fcb313c7626cc0f9262a688f4f93f /modules
parent8b8ff419adb3e38af1e20e7c8a1ad79951328fb6 (diff)
downloadinfra-7cc36b40a12c61e3623b1ec5f4def46b63252505.tar.gz
infra-7cc36b40a12c61e3623b1ec5f4def46b63252505.zip
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/services/matrix-bridge.nix9
1 files changed, 8 insertions, 1 deletions
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" ];