Paperless
This commit is contained in:
parent
f35dab29fa
commit
ab0cdddd1b
3 changed files with 47 additions and 2 deletions
35
systems/x86_64-linux/stargate/services/paperless.nix
Normal file
35
systems/x86_64-linux/stargate/services/paperless.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
namespace,
|
||||
system,
|
||||
target,
|
||||
format,
|
||||
virtual,
|
||||
systems,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.custom; {
|
||||
sops.secrets."services/paperless" = {owner = config.services.paperless.user;};
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
passwordFile = config.sops.secrets."services/paperless".path;
|
||||
consumptionDirIsPublic = false;
|
||||
database.createLocally = true;
|
||||
settings = {
|
||||
PAPERLESS_CONSUMER_IGNORE_PATTERN = [
|
||||
".DS_STORE/*"
|
||||
"desktop.ini"
|
||||
];
|
||||
PAPERLESS_OCR_LANGUAGE = "deu+eng+rus";
|
||||
PAPERLESS_OCR_USER_ARGS = {
|
||||
optimize = 1;
|
||||
pdfa_image_compression = "lossless";
|
||||
};
|
||||
PAPERLESS_URL = "https://paperless.kylekrein.com";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue