2020-01-19 21:53:58 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
docspell = import ./release.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = docspell.modules;
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
};
|
2020-04-30 19:28:28 +00:00
|
|
|
console.keyMap = "neo";
|
2020-01-19 21:53:58 +00:00
|
|
|
|
|
|
|
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;
|
2020-03-01 20:34:11 +00:00
|
|
|
bind.address = "0.0.0.0";
|
|
|
|
base-url = "http://localhost:7878";
|
2020-01-19 21:53:58 +00:00
|
|
|
};
|
|
|
|
services.docspell-restserver = {
|
2020-03-01 20:34:11 +00:00
|
|
|
bind.address = "0.0.0.0";
|
2020-01-19 21:53:58 +00:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
services.docspell-consumedir = {
|
|
|
|
enable = true;
|
|
|
|
watchDirs = ["/tmp/test"];
|
|
|
|
urls = ["http://localhost:7880/api/v1/open/upload/item/blabla"];
|
|
|
|
};
|
|
|
|
|
2020-01-24 20:56:48 +00:00
|
|
|
environment.systemPackages =
|
|
|
|
[ pkgs.docspell.tools
|
|
|
|
pkgs.docspell.server
|
|
|
|
pkgs.docspell.joex pkgs.jq
|
|
|
|
];
|
2020-01-22 22:11:02 +00:00
|
|
|
|
2020-01-19 21:53:58 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "docspelltest";
|
2020-02-28 20:18:10 +00:00
|
|
|
firewall.allowedTCPPorts = [7880];
|
2020-01-19 21:53:58 +00:00
|
|
|
};
|
|
|
|
|
2020-04-30 19:28:28 +00:00
|
|
|
system.stateVersion = "20.03";
|
2020-01-19 21:53:58 +00:00
|
|
|
|
|
|
|
}
|