From 12c6d79e72472ba6139c7f51804b184430970f1e Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Wed, 19 Jun 2024 15:56:21 +0000 Subject: [PATCH] nixos/prosody: provide an escape hatch for overriding the logging configuration --- nixos/modules/services/networking/prosody.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/prosody.nix b/nixos/modules/services/networking/prosody.nix index 0de07a9b870c..762c5d8d6146 100644 --- a/nixos/modules/services/networking/prosody.nix +++ b/nixos/modules/services/networking/prosody.nix @@ -716,6 +716,17 @@ in description = "Additional prosody configuration"; }; + log = mkOption { + type = types.lines; + default = ''"*syslog"''; + description = "Logging configuration. See [](https://prosody.im/doc/logging) for more details"; + example = '' + { + { min = "warn"; to = "*syslog"; }; + } + ''; + }; + }; }; @@ -764,7 +775,7 @@ in pidfile = "/run/prosody/prosody.pid" - log = "*syslog" + log = ${cfg.log} data_path = "${cfg.dataDir}" plugin_paths = {