Feature: Paperless
This commit is contained in:
@@ -18,6 +18,14 @@ in
|
|||||||
sonarr.enable = true;
|
sonarr.enable = true;
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
jellyseerr.enable = true;
|
jellyseerr.enable = true;
|
||||||
|
paperless = {
|
||||||
|
enable = true;
|
||||||
|
port = 28981; # Optional, to override the default port
|
||||||
|
extraConfig = {
|
||||||
|
PAPERLESS_ADMIN_USER = "finn";
|
||||||
|
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||||
|
};
|
||||||
|
};
|
||||||
prowlarr.enable = true;
|
prowlarr.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,27 @@ in
|
|||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
default = 28981;
|
default = 28981;
|
||||||
example = 8081;
|
example = 8080;
|
||||||
description = "Internal port for webui";
|
description = "Internal port for webui";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = types.attrs;
|
||||||
|
default = {};
|
||||||
|
example = { PAPERLESS_OCR_LANGUAGE = "deu+eng"; };
|
||||||
|
description = "Extra configuration options";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.paperless = {
|
||||||
|
enable = true;
|
||||||
|
address = "0.0.0.0";
|
||||||
|
dataDir = "/data/nfs/arr-data/documents/paperless";
|
||||||
|
#inherit (cfg) port extraConfig;
|
||||||
|
port = cfg.port;
|
||||||
|
extraConfig = cfg.extraConfig;
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user