2024-12-18 09:40:11 +03:00
|
|
|
{ lib, pkgs, ... }:
|
2024-12-02 21:12:45 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
services.paperless = {
|
|
|
|
enable = true;
|
2025-01-05 10:04:19 +03:00
|
|
|
address = "[::1]";
|
|
|
|
passwordFile = pkgs.writeText "PaperlessPassword" "root"; # WARN: Only for initial setup, change later.
|
2024-12-18 09:40:11 +03:00
|
|
|
settings = {
|
|
|
|
PAPERLESS_ADMIN_USER = "root";
|
|
|
|
PAPERLESS_DBHOST = "/run/postgresql";
|
|
|
|
PAPERLESS_DBENGINE = "postgresql";
|
|
|
|
PAPERLESS_DBNAME = "paperless";
|
|
|
|
PAPERLESS_DBPASS = "paperless";
|
|
|
|
PAPERLESS_DBUSER = "paperless";
|
|
|
|
PAPERLESS_OCR_LANGUAGE = "rus";
|
|
|
|
# PAPERLESS_REDIS = "redis://${config.container.module.redis.address}:${toString config.container.module.redis.port}";
|
|
|
|
PAPERLESS_URL = "https://paper.voronind.com";
|
|
|
|
};
|
|
|
|
};
|
2024-12-02 21:12:45 +03:00
|
|
|
}
|