Merge pull request #321061 from SomeoneSerge/prosody-logs

nixos/prosody: provide an (internal) escape hatch for overriding the …
This commit is contained in:
Sandro 2024-07-02 20:36:07 +02:00 committed by GitHub
commit 15705830ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = {