mkif instaed of optional to make it not be in the config at all

This commit is contained in:
Daniel Lovbrotte Olsen 2022-12-14 08:57:04 +01:00
parent 103f4bd378
commit 476d66f8b5
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ in
port = wRP;
}
);
services.matrix-synapse-next.settings.stream_writers.events = lib.optional (cfg.workers.eventPersisters > 0) (lib.genList (i: "auto-event-persist${toString (i + 1)}") cfg.workers.eventPersisters);
services.matrix-synapse-next.settings.stream_writers.events = lib.mkIf (cfg.workers.eventPersisters > 0) (lib.genList (i: "auto-event-persist${toString (i + 1)}") cfg.workers.eventPersisters);
services.matrix-synapse-next.workers.instances = genAttrs' (lib.lists.range 1 cfg.workers.eventPersisters)
(i: "auto-event-persist${toString i}")
(i: {