diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-09-04 13:52:14 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-09-04 16:16:46 +0200 |
commit | 2d257f81019e6a9ee255a92810be771d753b8ba5 (patch) | |
tree | 1627fa84f5d83b8cc5f6f222bf64eeec6a37c9a1 /nixos/modules/services/misc/paperless.nix | |
parent | 81a17f7352bd7acc438c298f317c190d2fbdcc35 (diff) | |
download | nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.tar nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.tar.gz nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.tar.bz2 nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.tar.lz nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.tar.xz nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.tar.zst nixpkgs-2d257f81019e6a9ee255a92810be771d753b8ba5.zip |
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.
Diffstat (limited to 'nixos/modules/services/misc/paperless.nix')
-rw-r--r-- | nixos/modules/services/misc/paperless.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 8750770cea2..9e554b93fc8 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -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 { |