From 4c5ef718fe18ab2136e335a33c59c64ca6135099 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 14 Jan 2026 02:42:29 +0900 Subject: [PATCH] workers: declare `worker_log_config` with default --- synapse-module/workers.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/synapse-module/workers.nix b/synapse-module/workers.nix index 9e4dbd3..48d2fab 100644 --- a/synapse-module/workers.nix +++ b/synapse-module/workers.nix @@ -74,6 +74,16 @@ in { description = "Listener configuration for the worker, similar to the main synapse listener"; default = [ ]; }; + + worker_log_config = mkOption { + type = types.path; + description = '' + A yaml python logging config file as described by + https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema + ''; + default = pkgs.writeText "log_config.yaml" cfg.mainLogConfig; + defaultText = "A config file generated from ${cfgText}.mainLogConfig"; + }; }; };