summaryrefslogtreecommitdiff
path: root/config/services
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-10-26 12:06:55 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-10-26 12:06:55 +0200
commit927afbff72a34054bc540c0806e6c4eb9737c028 (patch)
treece43df60c77c145f02dfd51537b8cbf7bf71db8e /config/services
parentbd7798aaca8ac57ccd38745854ff8a81861c0b05 (diff)
add nlab engine
Diffstat (limited to 'config/services')
-rw-r--r--config/services/web/searx/searx/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/services/web/searx/searx/default.nix b/config/services/web/searx/searx/default.nix
index 9550fc6..6306a35 100644
--- a/config/services/web/searx/searx/default.nix
+++ b/config/services/web/searx/searx/default.nix
@@ -117,6 +117,25 @@ in {
name = "duckduckgo";
disabled = false;
}
+ {
+ name = "nLab";
+ engine = "xpath";
+ search_url = "https://ncatlab.org/nlab/search?query={query}";
+ url_xpath = "//li/a/@href";
+ title_xpath = "//li/a";
+ content_xpath = "//li/a";
+ shortcut = "nlab";
+ categories = "science";
+ disabled = true;
+ about = {
+ website = "https://ncatlab.org/";
+ wikidata_id = "Q6954693";
+ official_api_documentation = "";
+ use_official_api = false;
+ require_api_key = false;
+ results = "HTML";
+ };
+ }
];
};
};