yuki: init paperless-ngx
This commit is contained in:
parent
e08a6f7d23
commit
dc6b9b09e0
3 changed files with 32 additions and 0 deletions
|
@ -32,6 +32,11 @@
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/paperless-ngx/media" = {
|
||||||
|
device = "192.168.1.199:/mnt/Sutoreji/paperless-ngx/paperless-media ";
|
||||||
|
fsType = "nfs";
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{device = "/dev/disk/by-uuid/bd7ccb73-6f85-4b3d-b37f-5cff58a6ab59";}
|
{device = "/dev/disk/by-uuid/bd7ccb73-6f85-4b3d-b37f-5cff58a6ab59";}
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,5 +9,6 @@
|
||||||
./homepage.nix
|
./homepage.nix
|
||||||
./searxng.nix
|
./searxng.nix
|
||||||
./anki-sync-server.nix
|
./anki-sync-server.nix
|
||||||
|
./paperless.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
26
hosts/yuki/services/paperless.nix
Normal file
26
hosts/yuki/services/paperless.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue