summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/workers/stream-writers
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers/stream-writers')
-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: {