nixos/paperless: explain how to set JSON env vars
Co-authored-by: Christian Theune <ct@flyingcircus.io> Co-authored-by: Erik Arvstedt <erik.arvstedt@gmail.com>
This commit is contained in:
parent
44f637aa8d
commit
2616bb762b
|
@ -169,6 +169,7 @@ in
|
||||||
description = lib.mdDoc "Web interface port.";
|
description = lib.mdDoc "Web interface port.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# FIXME this should become an RFC42-style settings attr
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -177,11 +178,23 @@ in
|
||||||
|
|
||||||
See [the documentation](https://paperless-ngx.readthedocs.io/en/latest/configuration.html)
|
See [the documentation](https://paperless-ngx.readthedocs.io/en/latest/configuration.html)
|
||||||
for available options.
|
for available options.
|
||||||
|
|
||||||
|
Note that some options such as `PAPERLESS_CONSUMER_IGNORE_PATTERN` expect JSON values. Use `builtins.toJSON` to ensure proper quoting.
|
||||||
|
'';
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||||
|
|
||||||
|
PAPERLESS_DBHOST = "/run/postgresql";
|
||||||
|
|
||||||
|
PAPERLESS_CONSUMER_IGNORE_PATTERN = builtins.toJSON [ ".DS_STORE/*" "desktop.ini" ];
|
||||||
|
|
||||||
|
PAPERLESS_OCR_USER_ARGS = builtins.toJSON {
|
||||||
|
optimize = 1;
|
||||||
|
pdfa_image_compression = "lossless";
|
||||||
|
};
|
||||||
|
};
|
||||||
'';
|
'';
|
||||||
example = {
|
|
||||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
|
||||||
PAPERLESS_DBHOST = "/run/postgresql";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue