2020-01-19 21:53:58 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
docspell = import ./release.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = docspell.modules;
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
consoleKeyMap = "neo";
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
password = "root";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
config = {
|
|
|
|
packageOverrides = pkgs:
|
|
|
|
let
|
|
|
|
callPackage = pkgs.lib.callPackageWith(custom // pkgs);
|
|
|
|
custom = {
|
2020-01-22 22:11:02 +00:00
|
|
|
docspell = callPackage docspell.currentPkg {};
|
2020-01-19 21:53:58 +00:00
|
|
|
};
|
|
|
|
in custom;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.docspell-joex = {
|
|
|
|
enable = true;
|
|
|
|
base-url = "http://docspelltest:7878";
|
|
|
|
};
|
|
|
|
services.docspell-restserver = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
services.docspell-consumedir = {
|
|
|
|
enable = true;
|
|
|
|
watchDirs = ["/tmp/test"];
|
|
|
|
urls = ["http://localhost:7880/api/v1/open/upload/item/blabla"];
|
|
|
|
};
|
|
|
|
|
2020-01-22 22:11:02 +00:00
|
|
|
environment.systemPackages = [ pkgs.docspell.tools pkgs.jq ];
|
|
|
|
|
2020-01-19 21:53:58 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "docspelltest";
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "19.09";
|
|
|
|
|
|
|
|
}
|