docspell/nix/checks/configuration-test.nix

94 lines
1.7 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
let
full-text-search = {
enabled = true;
solr.url = "http://localhost:${toString config.services.solr.port}/solr/docspell";
postgresql = {
pg-config = {
"german" = "my-germam";
};
};
};
in
{
i18n = {
defaultLocale = "en_US.UTF-8";
};
2021-07-29 16:09:49 +00:00
console.keyMap = "de";
users.users.root = {
password = "root";
};
services.docspell-joex = {
enable = true;
waitForTarget = "solr-init.target";
bind.address = "0.0.0.0";
base-url = "http://localhost:7878";
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;
};
};
};
};
};
environment.systemPackages =
[
pkgs.jq
pkgs.inetutils
pkgs.htop
pkgs.openjdk
];
services.xserver = {
enable = false;
};
networking = {
hostName = "docspelltest";
firewall.allowedTCPPorts = [ 7880 ];
};
system.stateVersion = "22.05";
}