docspell/nix/checks/configuration-test.nix
eikek 96c825e93a Update nix setup
Need to remove solr, because it has been dropped in nixos 23.11
2024-01-29 22:14:15 +01:00

96 lines
1.7 KiB
Nix

{ config, pkgs, ... }:
let
full-text-search = {
enabled = true;
backend = "postgresql";
postgresql = {
pg-config = {
"german" = "my-germam";
};
};
};
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";
jvmArgs = [ "-J-Xmx1536M" ];
inherit full-text-search;
};
services.docspell-restserver = {
enable = true;
bind.address = "0.0.0.0";
backend = {
addons.enabled = true;
};
integration-endpoint = {
enabled = true;
http-header = {
enabled = true;
header-value = "test123";
};
};
openid = [
{
enabled = true;
display = "Local";
provider = {
provider-id = "local";
client-id = "cid1";
client-secret = "csecret-1";
authorize-url = "http://auth";
token-url = "http://token";
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.jdk17
];
services.xserver = {
enable = false;
};
networking = {
hostName = "docspelltest";
firewall.allowedTCPPorts = [ 7880 ];
};
system.stateVersion = "22.11";
# This slows down the build of a vm
documentation.enable = false;
}