mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/paperless: move custom folder setting to device
This commit is contained in:
parent
b4cc0204df
commit
c7a56294a4
2 changed files with 8 additions and 2 deletions
|
@ -72,6 +72,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordFile = secrets."paperless/password".path;
|
passwordFile = secrets."paperless/password".path;
|
||||||
extraConfig.PAPERLESS_ADMIN_USER = "felix";
|
extraConfig.PAPERLESS_ADMIN_USER = "felix";
|
||||||
|
mediaDir = "/srv/data/docs";
|
||||||
};
|
};
|
||||||
# RSS aggregator and reader
|
# RSS aggregator and reader
|
||||||
freshrss = {
|
freshrss = {
|
||||||
|
|
|
@ -21,6 +21,12 @@ in
|
||||||
description = "Internal port for webui";
|
description = "Internal port for webui";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mediaDir = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
description = "Password for the defaultUser for FreshRSS.";
|
||||||
|
example = "/run/secrets/freshrss";
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -31,8 +37,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.paperless = {
|
services.paperless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (cfg) port;
|
inherit (cfg) port mediaDir;
|
||||||
mediaDir = "/srv/data/docs";
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||||
} // cfg.extraConfig;
|
} // cfg.extraConfig;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue