chore: remove unused docspell setup
This commit is contained in:
parent
ff8eee35b1
commit
b30e6e362d
7 changed files with 3 additions and 194 deletions
1
acme.nix
1
acme.nix
|
|
@ -6,7 +6,6 @@
|
||||||
"sourcehut.${base-domain}"
|
"sourcehut.${base-domain}"
|
||||||
"meta.sourcehut.${base-domain}"
|
"meta.sourcehut.${base-domain}"
|
||||||
"git.sourcehut.${base-domain}"
|
"git.sourcehut.${base-domain}"
|
||||||
"docspell.${base-domain}"
|
|
||||||
"paperless.${base-domain}"
|
"paperless.${base-domain}"
|
||||||
];
|
];
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
base-domain = "005540.xyz";
|
base-domain = "005540.xyz";
|
||||||
in
|
in
|
||||||
{ pkgs, docspell, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
|
|
@ -18,7 +18,6 @@ in
|
||||||
|
|
||||||
(import ./sourcehut.nix { inherit base-domain; })
|
(import ./sourcehut.nix { inherit base-domain; })
|
||||||
|
|
||||||
(import ./docspell.nix { inherit base-domain docspell; })
|
|
||||||
(import ./paperless.nix { inherit base-domain; })
|
(import ./paperless.nix { inherit base-domain; })
|
||||||
|
|
||||||
./userprogs.nix
|
./userprogs.nix
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
create user docspell with password 'docspell' login createdb;
|
|
||||||
create schema docspell;
|
|
||||||
grant all privileges on all tables in schema docspell to docspell;
|
|
||||||
grant all privileges on all sequences in schema docspell to docspell;
|
|
||||||
create database DOCSPELL owner docspell;
|
|
||||||
45
docspell.nix
45
docspell.nix
|
|
@ -1,45 +0,0 @@
|
||||||
{ base-domain, docspell, ... }:
|
|
||||||
let
|
|
||||||
fqdn = "docspell.${base-domain}";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixpkgs.overlays = [ docspell.overlays.default ];
|
|
||||||
|
|
||||||
services.docspell-joex = {
|
|
||||||
enable = true;
|
|
||||||
base-url = "http://localhost:7878";
|
|
||||||
bind = {
|
|
||||||
address = "0.0.0.0";
|
|
||||||
port = 7878;
|
|
||||||
};
|
|
||||||
scheduler.pool-size = 1;
|
|
||||||
jdbc = {
|
|
||||||
url = "jdbc:postgresql://localhost:5432/docspell";
|
|
||||||
user = "docspell";
|
|
||||||
password = "docspell";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.docspell-restserver = {
|
|
||||||
enable = true;
|
|
||||||
base-url = "https://${fqdn}";
|
|
||||||
bind = {
|
|
||||||
address = "0.0.0.0";
|
|
||||||
port = 7879;
|
|
||||||
};
|
|
||||||
auth = {
|
|
||||||
server-secret = "b64:lv56LIyZmaXTdlhvFBVpoNHt2BTQBgHpb7lwl1gyOG9MuvWKhSi91h84P15QIXirfYPSVV/R1aoTifSO688dWQ==";
|
|
||||||
};
|
|
||||||
backend = {
|
|
||||||
signup = {
|
|
||||||
mode = "invite";
|
|
||||||
new-invite-password = "asunarovow";
|
|
||||||
invite-time = "30 days";
|
|
||||||
};
|
|
||||||
jdbc = {
|
|
||||||
url = "jdbc:postgresql://localhost:5432/docspell";
|
|
||||||
user = "docspell";
|
|
||||||
password = "docspell";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
126
flake.lock
generated
126
flake.lock
generated
|
|
@ -1,99 +1,6 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"devshell-tools": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1723456550,
|
|
||||||
"narHash": "sha256-7QRLuQAtNpKqXdXZ6/cGdFU3yAyZkuXm3NBb0WRVvRc=",
|
|
||||||
"owner": "eikek",
|
|
||||||
"repo": "devshell-tools",
|
|
||||||
"rev": "09f6239a67b648a8b777ce4da6712d6600138f5e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "eikek",
|
|
||||||
"repo": "devshell-tools",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"docspell": {
|
|
||||||
"inputs": {
|
|
||||||
"devshell-tools": "devshell-tools",
|
|
||||||
"flake-utils": "flake-utils_2",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1724580695,
|
|
||||||
"narHash": "sha256-KKLSqkjqg63zGl1fsRC293A0FNhDdXgnde3h3VEE8WU=",
|
|
||||||
"owner": "eikek",
|
|
||||||
"repo": "docspell",
|
|
||||||
"rev": "02396d29e72e315d4743204470fe60b973860a6a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "eikek",
|
|
||||||
"repo": "docspell",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_2": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1721548954,
|
|
||||||
"narHash": "sha256-7cCC8+Tdq1+3OPyc3+gVo9dzUNkNIQfwSDJ2HSi2u3o=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "63d37ccd2d178d54e7fb691d7ec76000740ea24a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-24.05",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1724316499,
|
"lastModified": 1724316499,
|
||||||
"narHash": "sha256-Qb9MhKBUTCfWg/wqqaxt89Xfi6qTD3XpTzQ9eXi3JmE=",
|
"narHash": "sha256-Qb9MhKBUTCfWg/wqqaxt89Xfi6qTD3XpTzQ9eXi3JmE=",
|
||||||
|
|
@ -111,38 +18,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"docspell": "docspell",
|
"nixpkgs": "nixpkgs"
|
||||||
"nixpkgs": "nixpkgs_2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
10
flake.nix
10
flake.nix
|
|
@ -3,21 +3,13 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||||
docspell = {
|
|
||||||
url = "github:eikek/docspell";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, docspell, ... }: {
|
outputs = { self, nixpkgs, ... }: {
|
||||||
nixosConfigurations.quasar = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.quasar = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
docspell.nixosModules.default
|
|
||||||
{
|
|
||||||
_module.args = { inherit docspell; };
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,6 @@
|
||||||
"git.sourcehut.${base-domain}" = {
|
"git.sourcehut.${base-domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
};
|
};
|
||||||
"docspell.${base-domain}" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:7879";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"paperless.${base-domain}" = {
|
"paperless.${base-domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue