- 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, ... }:
|
{ lib, pkgs, config, ... }: {
|
||||||
let
|
|
||||||
dbname = "paperless";
|
|
||||||
dbuser = "paperless";
|
|
||||||
dbpass = "paperless";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
|
|
||||||
services.paperless = {
|
services.paperless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
consumptionDirIsPublic = true;
|
consumptionDirIsPublic = true;
|
||||||
address = "192.168.178.51";
|
address = "192.168.178.51";
|
||||||
user = dbuser;
|
user = "paperless";
|
||||||
|
database.createLocally = true;
|
||||||
settings = {
|
settings = {
|
||||||
PAPERLESS_CONSUMER_IGNORE_PATTERN = [
|
PAPERLESS_CONSUMER_IGNORE_PATTERN = [
|
||||||
".DS_STORE/*"
|
".DS_STORE/*"
|
||||||
|
|
@ -25,24 +20,9 @@ in
|
||||||
optimize = 1;
|
optimize = 1;
|
||||||
pdfa_image_compression = "lossless";
|
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
|
# Paperless-ngx also requires a redis cache
|
||||||
services.redis.enable = true;
|
services.redis.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -2,16 +2,16 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741724370,
|
"lastModified": 1741851582,
|
||||||
"narHash": "sha256-WsD+8uodhl58jzKKcPH4jH9dLTLFWZpVmGq4W1XDVF4=",
|
"narHash": "sha256-cPfs8qMccim2RBgtKGF+x9IBCduRvd/N5F4nYpU0TVE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "95600680c021743fd87b3e2fe13be7c290e1cac4",
|
"rev": "6607cf789e541e7873d40d3a8f7815ea92204f32",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
outputs = { nixpkgs, ... }: {
|
outputs = { nixpkgs, ... }: {
|
||||||
colmena = {
|
colmena = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue