Update nix setup

Removes the consumedir module, use the module in the dsc project [0]
instead.

[0] https://github.com/docspell/dsc/blob/master/nix/module.nix
This commit is contained in:
eikek
2021-08-28 12:52:43 +02:00
parent be510b0363
commit 5cc2ad92a2
4 changed files with 14 additions and 177 deletions

View File

@ -50,19 +50,9 @@ in
};
inherit full-text-search;
};
services.docspell-consumedir = {
enable = true;
integration-endpoint = {
enabled = true;
header = "Docspell-Integration:test123";
};
watchDirs = ["/tmp/docs"];
urls = ["http://localhost:7880/api/v1/open/integration/item"];
};
environment.systemPackages =
[ pkgs.docspell.tools
pkgs.docspell.server
[ pkgs.docspell.server
pkgs.docspell.joex
pkgs.jq
pkgs.telnet
@ -80,11 +70,6 @@ in
firewall.allowedTCPPorts = [7880];
};
system.activationScripts = {
initUploadDir = ''
mkdir -p ${builtins.concatStringsSep " " config.services.docspell-consumedir.watchDirs}
'';
};
system.stateVersion = "20.03";
system.stateVersion = "21.05";
}