1 { pkgs, config, lib, ... }:
3 fqdn = "searx.${config.networking.fqdn}";
7 networking.extraHosts = "127.0.0.1 ${fqdn}";
10 key = "dJoLJYyLpU4ukIs3W4kXgYsHTMwJb8nDRKuu3WmC1gmS";
18 instance_name = "${fqdn}";
21 default_theme = "simple";
25 bind_address = "127.0.0.1";
26 secret_key = "REMOVEthisANDchangeITtoSOMETHINGelsey7r8u39ir30o10oe19ie28ury643r4t";
27 base_url = if config.security.acme.acceptTerms then "https://${fqdn}" else "http://${fqdn}";
30 { name = "marginalia";
31 engine = "json_engine";
33 search_url = "https://api.marginalia.nu/public/search/{query}?index={pageno}";
34 results_query = "results";
36 title_query = "title";
37 content_query = "description";
38 categories = "smolweb";
41 shortcut = "marginalia";
45 search_url = "https://lieu.cblgh.org/?q={query}";
46 results_xpath = "//li[@class=\"entry\"]";
47 url_xpath = ".//a/@href";
48 title_xpath = ".//a/@href";
49 content_xpath = ".//p";
50 categories = "smolweb";
54 { name = "lieu-external";
56 search_url = "https://lieu.cblgh.org/outgoing?q={query}";
57 results_xpath = "//li[@class=\"entry\"]";
58 url_xpath = ".//a/@href";
60 content_xpath = ".//a";
61 categories = "smolweb";
68 search_url = "https://wiby.me/?q={query}";
69 results_xpath = "//blockquote";
70 url_xpath = ".//a/@href";
72 content_xpath = ".//a";
73 categories = "smolweb";
80 search_url = "https://teclis.com/search?q={query}";
81 results_xpath = "//ul[@class=\"result-items\"]/li[not(@class)]";
82 url_xpath = "./p/a/@href";
84 content_xpath = "./span";
85 categories = "smolweb";
90 # { name = "geminispace.info";
92 # search_url = "https://teclis.com/search?q={query}";
93 # results_xpath = "//ul[@class=\"result-items\"]/li";
94 # url_xpath = "./p/a/@href";
95 # title_xpath = "./a";
96 # content_xpath = "./span";
97 # categories = "smolweb";
99 # shortcut = "teclis";
104 helpers.webservices."${fqdn}".port = config.services.searx.settings.server.port;