summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-10-06 09:28:32 +0200
committerGitHub <noreply@github.com>2022-10-06 09:28:32 +0200
commit988c9130e1e892de005127f160c3a70514352074 (patch)
treefc970833f9460bfa45d62cab75d21b30f89ca423 /nixos
parentd010df5cef232665c01c4e2b75c17a0332e64de0 (diff)
parent7414171dd1b127a961efb18a76296b61831e929e (diff)
Merge pull request #193767 from winterqt/update-dendrite
dendrite: 0.9.9 -> 0.10.1
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/matrix/dendrite.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/modules/services/matrix/dendrite.nix b/nixos/modules/services/matrix/dendrite.nix
index 9279af246f41..a5fea3da4844 100644
--- a/nixos/modules/services/matrix/dendrite.nix
+++ b/nixos/modules/services/matrix/dendrite.nix
@@ -195,6 +195,25 @@ in
'';
};
};
+ options.sync_api.search = {
+ enable = lib.mkEnableOption (lib.mdDoc "Dendrite's full-text search engine");
+ index_path = lib.mkOption {
+ type = lib.types.str;
+ default = "${workingDir}/searchindex";
+ description = lib.mdDoc ''
+ The path the search index will be created in.
+ '';
+ };
+ language = lib.mkOption {
+ type = lib.types.str;
+ default = "en";
+ description = lib.mdDoc ''
+ The language most likely to be used on the server - used when indexing, to
+ ensure the returned results match expectations. A full list of possible languages
+ can be found at https://github.com/blevesearch/bleve/tree/master/analysis/lang
+ '';
+ };
+ };
options.user_api = {
account_database = {
connection_string = lib.mkOption {