yuki: init paperless-ngx

This commit is contained in:
notohh 2024-01-30 18:57:07 -05:00
parent e08a6f7d23
commit dc6b9b09e0
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 32 additions and 0 deletions

View file

@ -32,6 +32,11 @@
fsType = "nfs";
};
fileSystems."/var/lib/paperless-ngx/media" = {
device = "192.168.1.199:/mnt/Sutoreji/paperless-ngx/paperless-media ";
fsType = "nfs";
};
swapDevices = [
{device = "/dev/disk/by-uuid/bd7ccb73-6f85-4b3d-b37f-5cff58a6ab59";}
];

View file

@ -9,5 +9,6 @@
./homepage.nix
./searxng.nix
./anki-sync-server.nix
./paperless.nix
];
}

View file

@ -0,0 +1,26 @@
{
pkgs,
config,
...
}: {
sops.secrets.paperless-pwd = {
owner = "paperless";
group = "paperless";
};
services.paperless = let
dataDir = "/var/lib/paperless-ngx";
in {
package = pkgs.paperless-ngx;
enable = true;
address = "100.108.113.89";
port = 28981;
passwordFile = config.sops.secrets.paperless-pwd.path;
dataDir = "${dataDir}";
mediaDir = "${dataDir}/media";
consumptionDir = "${dataDir}/consume";
settings = {
PAPERLESS_ADMIN_USER = "notoh";
PAPERLESS_REDIS = "redis://:paperless-ngx@100.94.214.100:6382";
};
};
}