nixos/paperless: Add pgsql via unix socket example

Finding out how to connect paperless to a PostgreSQL database via unix
sockets and peer authentication took me a few minutes, so leaving a hint
in the extraConfig example seems like a good idea to me.

Also remove unnecessary use of literalExpression for attribute set, it
is only required for complex values like functions or values that depend
on other values or packages.
This commit is contained in:
Martin Weinelt 2022-09-04 13:52:14 +02:00
parent 81a17f7352
commit 2d257f8101
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -176,11 +176,10 @@ in
See [the documentation](https://paperless-ngx.readthedocs.io/en/latest/configuration.html)
for available options.
'';
example = literalExpression ''
{
PAPERLESS_OCR_LANGUAGE = "deu+eng";
}
'';
example = {
PAPERLESS_OCR_LANGUAGE = "deu+eng";
PAPERLESS_DBHOST = "/run/postgresql";
};
};
user = mkOption {