summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-04 15:13:45 +0200
committerRory& <root@rory.gay>2024-07-04 15:13:45 +0200
commitdfad9189d4848ce9d079ae734c76690038c54ca2 (patch)
treee44dfc453ecb6fc0c2e9575c59204817aa286b7b /host/Rory-nginx/services/matrix
parentFix sliding sync (diff)
downloadRory-Open-Architecture-dfad9189d4848ce9d079ae734c76690038c54ca2.tar.xz
Fix missing if condition in synapse config
Diffstat (limited to 'host/Rory-nginx/services/matrix')
-rw-r--r--host/Rory-nginx/services/matrix/synapse/workers/stream-writers/event-stream-writer.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/stream-writers/event-stream-writer.nix b/host/Rory-nginx/services/matrix/synapse/workers/stream-writers/event-stream-writer.nix
index 42e9251..dba4721 100644
--- a/host/Rory-nginx/services/matrix/synapse/workers/stream-writers/event-stream-writer.nix
+++ b/host/Rory-nginx/services/matrix/synapse/workers/stream-writers/event-stream-writer.nix
@@ -9,7 +9,7 @@ let
   streamWriters = lib.range 0 (cfg.eventStreamWriters - 1);
 in
 {
-  services.matrix-synapse = {
+  services.matrix-synapse = lib.mkIf (cfg.eventStreamWriters > 0) {
     settings = {
       instance_map = lib.listToAttrs (
         lib.map (port: {