mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
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:
@ -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";
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user