From dfad9189d4848ce9d079ae734c76690038c54ca2 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 4 Jul 2024 15:13:45 +0200 Subject: Fix missing if condition in synapse config --- .../matrix/synapse/workers/stream-writers/event-stream-writer.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: { -- cgit 1.4.1