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
|
@ -21,6 +21,12 @@ in
|
|||
description = "Internal port for webui";
|
||||
};
|
||||
|
||||
mediaDir = mkOption {
|
||||
type = types.path;
|
||||
description = "Password for the defaultUser for FreshRSS.";
|
||||
example = "/run/secrets/freshrss";
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
|
@ -31,8 +37,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
inherit (cfg) port;
|
||||
mediaDir = "/srv/data/docs";
|
||||
inherit (cfg) port mediaDir;
|
||||
extraConfig = {
|
||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||
} // cfg.extraConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue