docspell/nix/checks/configuration-test.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-09 00:28:44 +00:00
{
config,
pkgs,
...
}: let
full-text-search = {
enabled = true;
backend = "postgresql";
postgresql = {
pg-config = {
"german" = "my-germam";
};
};
};
2024-03-09 00:28:44 +00:00
in {
i18n = {
defaultLocale = "en_US.UTF-8";
};
console.keyMap = "us";
users.users.root = {
password = "root";
};
services.docspell-joex = {
enable = true;
bind.address = "0.0.0.0";
base-url = "http://localhost:7878";
2024-03-09 00:28:44 +00:00
jvmArgs = ["-J-Xmx1536M"];
inherit full-text-search;
};
services.docspell-restserver = {
enable = true;
bind.address = "0.0.0.0";
2022-05-21 20:02:42 +00:00
backend = {
addons.enabled = true;
};
integration-endpoint = {
enabled = true;
http-header = {
enabled = true;
header-value = "test123";
};
};
2021-09-06 12:25:10 +00:00
openid = [
{
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";
};
}
];
inherit full-text-search;
extraConfig = {
files = {
default-store = "database";
stores = {
minio = {
enabled = true;
};
};
};
};
};
2024-03-09 00:28:44 +00:00
environment.systemPackages = [
pkgs.jq
pkgs.inetutils
pkgs.htop
pkgs.jdk17
];
services.xserver = {
enable = false;
};
networking = {
hostName = "docspelltest";
2024-03-09 00:28:44 +00:00
firewall.allowedTCPPorts = [7880];
};
system.stateVersion = "22.11";
# This slows down the build of a vm
documentation.enable = false;
}