mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-02 13:32:51 +00:00
Adopt nix setup and joex module
This commit is contained in:
parent
54bbbde8b9
commit
7a4a444da6
@ -13,6 +13,7 @@ let
|
||||
app-name = "Docspell";
|
||||
app-id = "rest1";
|
||||
base-url = "http://localhost:7880";
|
||||
internal-url = "http://localhost:7880";
|
||||
max-item-page-size = 200;
|
||||
max-note-length = 180;
|
||||
show-classification-settings = true;
|
||||
@ -145,6 +146,17 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
internal-url = mkOption {
|
||||
type = types.str;
|
||||
default = defaults.internal-url;
|
||||
description = ''
|
||||
This url is the base url for reaching this server internally.
|
||||
While you might set `base-url` to some external address (like
|
||||
mydocs.myserver.com), the `internal-url` must be set such that
|
||||
other nodes can reach this server.
|
||||
'';
|
||||
};
|
||||
|
||||
max-item-page-size = mkOption {
|
||||
type = types.int;
|
||||
default = defaults.max-item-page-size;
|
||||
|
@ -1,5 +1,16 @@
|
||||
rec {
|
||||
cfg = {
|
||||
v0_29_0 = rec {
|
||||
version = "0.29.0";
|
||||
server = {
|
||||
url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-restserver-${version}.zip";
|
||||
sha256 = "0bxpn3lc8ds5bbc6g8x3jbflv57jwfchi7isiy4j96nzzrpzzxmy";
|
||||
};
|
||||
joex = {
|
||||
url = "https://github.com/eikek/docspell/releases/download/v${version}/docspell-joex-${version}.zip";
|
||||
sha256 = "027s4yrhai7sk4sjkxg6l9ysf2nyqplzig9jx0bhcl7pr8bhpgcr";
|
||||
};
|
||||
};
|
||||
v0_28_0 = rec {
|
||||
version = "0.28.0";
|
||||
server = {
|
||||
@ -140,7 +151,7 @@ rec {
|
||||
};
|
||||
};
|
||||
pkg = v: import ./pkg.nix v;
|
||||
currentPkg = pkg cfg.v0_28_0;
|
||||
currentPkg = pkg cfg.v0_29_0;
|
||||
module-joex = ./module-joex.nix;
|
||||
module-restserver = ./module-server.nix;
|
||||
modules = [ module-joex
|
||||
|
Loading…
x
Reference in New Issue
Block a user