2020-01-19 21:53:58 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
2020-06-28 11:36:46 +00:00
|
|
|
full-text-search = {
|
|
|
|
enabled = true;
|
2024-01-29 21:14:15 +00:00
|
|
|
backend = "postgresql";
|
2022-03-21 13:58:15 +00:00
|
|
|
postgresql = {
|
|
|
|
pg-config = {
|
|
|
|
"german" = "my-germam";
|
|
|
|
};
|
|
|
|
};
|
2020-06-28 11:36:46 +00:00
|
|
|
};
|
2020-01-19 21:53:58 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
};
|
2022-12-24 02:57:34 +00:00
|
|
|
console.keyMap = "us";
|
2020-01-19 21:53:58 +00:00
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
password = "root";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
services.docspell-joex = {
|
|
|
|
enable = true;
|
2020-03-01 20:34:11 +00:00
|
|
|
bind.address = "0.0.0.0";
|
|
|
|
base-url = "http://localhost:7878";
|
2020-09-25 19:58:02 +00:00
|
|
|
jvmArgs = [ "-J-Xmx1536M" ];
|
2020-06-28 11:36:46 +00:00
|
|
|
inherit full-text-search;
|
2020-01-19 21:53:58 +00:00
|
|
|
};
|
|
|
|
services.docspell-restserver = {
|
|
|
|
enable = true;
|
2020-06-28 11:36:46 +00:00
|
|
|
bind.address = "0.0.0.0";
|
2022-05-21 20:02:42 +00:00
|
|
|
backend = {
|
|
|
|
addons.enabled = true;
|
|
|
|
};
|
2020-06-28 11:36:46 +00:00
|
|
|
integration-endpoint = {
|
|
|
|
enabled = true;
|
|
|
|
http-header = {
|
|
|
|
enabled = true;
|
|
|
|
header-value = "test123";
|
|
|
|
};
|
|
|
|
};
|
2021-09-06 12:25:10 +00:00
|
|
|
openid = [
|
2022-11-28 21:45:34 +00:00
|
|
|
{
|
|
|
|
enabled = true;
|
2021-09-06 12:25:10 +00:00
|
|
|
display = "Local";
|
|
|
|
provider = {
|
|
|
|
provider-id = "local";
|
|
|
|
client-id = "cid1";
|
|
|
|
client-secret = "csecret-1";
|
2022-05-21 20:02:42 +00:00
|
|
|
authorize-url = "http://auth";
|
|
|
|
token-url = "http://token";
|
2021-09-06 12:25:10 +00:00
|
|
|
sign-key = "b64:uiaeuae";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2020-06-28 11:36:46 +00:00
|
|
|
inherit full-text-search;
|
2022-12-12 16:25:21 +00:00
|
|
|
extraConfig = {
|
|
|
|
files = {
|
|
|
|
default-store = "database";
|
|
|
|
stores = {
|
|
|
|
minio = {
|
|
|
|
enabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2020-01-19 21:53:58 +00:00
|
|
|
};
|
|
|
|
|
2020-01-24 20:56:48 +00:00
|
|
|
environment.systemPackages =
|
2022-11-28 21:45:34 +00:00
|
|
|
[
|
2020-06-28 11:36:46 +00:00
|
|
|
pkgs.jq
|
2022-11-28 21:45:34 +00:00
|
|
|
pkgs.inetutils
|
2020-09-08 16:07:04 +00:00
|
|
|
pkgs.htop
|
2023-11-05 22:11:22 +00:00
|
|
|
pkgs.jdk17
|
2020-01-24 20:56:48 +00:00
|
|
|
];
|
2020-01-22 22:11:02 +00:00
|
|
|
|
2020-06-28 11:36:46 +00:00
|
|
|
|
2020-01-19 21:53:58 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "docspelltest";
|
2022-11-28 21:45:34 +00:00
|
|
|
firewall.allowedTCPPorts = [ 7880 ];
|
2020-01-19 21:53:58 +00:00
|
|
|
};
|
|
|
|
|
2022-12-24 02:57:34 +00:00
|
|
|
system.stateVersion = "22.11";
|
|
|
|
|
|
|
|
# This slows down the build of a vm
|
|
|
|
documentation.enable = false;
|
2020-01-19 21:53:58 +00:00
|
|
|
|
|
|
|
}
|