1
2
mirror of https://github.com/dali99/nixos-matrix-modules.git synced 2026-01-21 14:58:21 +01:00

workers: declare worker_log_config with default

This commit is contained in:
2026-01-14 02:42:29 +09:00
parent 543b50dcf5
commit 4c5ef718fe

View File

@@ -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";
};
};
};