- working paperless config
- switch to nixos-unstable
This commit is contained in:
parent
61cfdd25e7
commit
123076829d
3 changed files with 8 additions and 28 deletions
|
|
@ -1,16 +1,11 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
dbname = "paperless";
|
||||
dbuser = "paperless";
|
||||
dbpass = "paperless";
|
||||
in
|
||||
{
|
||||
{ lib, pkgs, config, ... }: {
|
||||
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
consumptionDirIsPublic = true;
|
||||
address = "192.168.178.51";
|
||||
user = dbuser;
|
||||
user = "paperless";
|
||||
database.createLocally = true;
|
||||
settings = {
|
||||
PAPERLESS_CONSUMER_IGNORE_PATTERN = [
|
||||
".DS_STORE/*"
|
||||
|
|
@ -25,24 +20,9 @@ in
|
|||
optimize = 1;
|
||||
pdfa_image_compression = "lossless";
|
||||
};
|
||||
PAPERLESS_DBENGINE = "postgres";
|
||||
PAPERLESS_DBHOST = "/run/postgresql";
|
||||
PAPERLESS_DUSER = dbuser;
|
||||
PAPERLESS_DBNAME = dbname;
|
||||
PAPERLESS_DBPASS = dbpass;
|
||||
};
|
||||
};
|
||||
|
||||
# enable a PostgreSQL DB
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ dbname ];
|
||||
ensureUsers = [{
|
||||
name = dbuser;
|
||||
ensureDBOwnership = true;
|
||||
}];
|
||||
};
|
||||
|
||||
# Paperless-ngx also requires a redis cache
|
||||
services.redis.enable = true;
|
||||
|
||||
|
|
|
|||
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -2,16 +2,16 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1741724370,
|
||||
"narHash": "sha256-WsD+8uodhl58jzKKcPH4jH9dLTLFWZpVmGq4W1XDVF4=",
|
||||
"lastModified": 1741851582,
|
||||
"narHash": "sha256-cPfs8qMccim2RBgtKGF+x9IBCduRvd/N5F4nYpU0TVE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "95600680c021743fd87b3e2fe13be7c290e1cac4",
|
||||
"rev": "6607cf789e541e7873d40d3a8f7815ea92204f32",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-24.11",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
outputs = { nixpkgs, ... }: {
|
||||
colmena = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue