mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/paperless: migrate to settings from extraConfig
This commit is contained in:
parent
a9bd6cb089
commit
28d636ec98
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue