Merge branch 'jupiter-2' into 'master'

Feature: Paperless

See merge request finn.markwitz/nixos!3
This commit is contained in:
2024-03-10 21:19:23 +00:00
2 changed files with 31 additions and 4 deletions
+8
View File
@@ -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;
}; };
+20 -1
View File
@@ -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 ];
}; };
} }