Add new config to nix modules

This commit is contained in:
eikek
2022-02-19 23:37:45 +01:00
parent 9eb9497675
commit 773b4181d6
2 changed files with 47 additions and 0 deletions

View File

@ -21,6 +21,10 @@ let
address = "localhost";
port = 7880;
};
logging = {
minimum-level = "Info";
format = "Plain";
};
integration-endpoint = {
enabled = false;
priority = "low";
@ -210,6 +214,25 @@ in {
description = "Address and port bind the rest server.";
};
logging = mkOption {
type = types.submodule({
options = {
minimum-level = mkOption {
type = types.str;
default = defaults.logging.minimum-level;
description = "The minimum level for logging to control verbosity.";
};
format = mkOption {
type = types.str;
default = defaults.logging.format;
description = "The log format. One of: Fancy, Plain, Json or Logfmt";
};
};
});
default = defaults.logging;
description = "Settings for logging";
};
auth = mkOption {
type = types.submodule({
options = {