service/paperless: migrate to settings from extraConfig

This commit is contained in:
Felix Buehler 2024-06-01 18:44:04 +02:00
parent a9bd6cb089
commit 28d636ec98
2 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ in
paperless = { paperless = {
enable = true; enable = true;
passwordFile = secrets."paperless/password".path; passwordFile = secrets."paperless/password".path;
extraConfig.PAPERLESS_ADMIN_USER = "felix"; settings.PAPERLESS_ADMIN_USER = "felix";
mediaDir = "/data/docs"; mediaDir = "/data/docs";
}; };
# RSS aggregator and reader # RSS aggregator and reader

View file

@ -27,7 +27,7 @@ in
example = "/run/secrets/freshrss"; example = "/run/secrets/freshrss";
}; };
extraConfig = mkOption { settings = mkOption {
type = types.attrs; type = types.attrs;
default = { }; default = { };
description = "additional extraConfig"; description = "additional extraConfig";
@ -38,9 +38,9 @@ in
services.paperless = { services.paperless = {
enable = true; enable = true;
inherit (cfg) port mediaDir passwordFile; inherit (cfg) port mediaDir passwordFile;
extraConfig = { settings = {
PAPERLESS_OCR_LANGUAGE = "deu+eng"; PAPERLESS_OCR_LANGUAGE = "deu+eng";
} // cfg.extraConfig; } // cfg.settings;
}; };
# monitoring is not really useful, because it only contains the http-worker infos -> skipped for now # monitoring is not really useful, because it only contains the http-worker infos -> skipped for now