nix: add log_format
option to the module
This commit is contained in:
parent
6f6a60f667
commit
da01f1fd33
1 changed files with 8 additions and 1 deletions
|
@ -8,7 +8,7 @@ self: {
|
|||
inherit (builtins) toJSON toString;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
||||
inherit (lib.types) package str port int listOf enum bool attrsOf path;
|
||||
inherit (lib.types) package str int listOf enum bool attrsOf path;
|
||||
inherit (lib.lists) optionals;
|
||||
|
||||
cfg = config.services.eris;
|
||||
|
@ -30,6 +30,7 @@ self: {
|
|||
config_dir = "${cfg.stateDir}/conf";
|
||||
cache_dir = cfg.cacheDir;
|
||||
disable_metrics = cfg.disableMetrics;
|
||||
log_format = cfg.logFormat;
|
||||
});
|
||||
in {
|
||||
###### interface
|
||||
|
@ -134,6 +135,12 @@ in {
|
|||
description = "Logging level for the Eris service.";
|
||||
};
|
||||
|
||||
logFormat = mkOption {
|
||||
type = enum ["Plain" "Pretty" "Json" "PrettyJson"];
|
||||
default = "Pretty";
|
||||
description = "Logging format for Eris.";
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
type = str;
|
||||
default = "eris";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue