searx: allow html, json, rss, csv formats

This commit is contained in:
eyjhb 2025-07-28 20:09:32 +02:00
parent 9095c3d075
commit c98a9e9c83
Signed by: eyjhb
GPG key ID: 609F508E3239F920

View file

@ -1,9 +1,15 @@
{ config, lib, pkgs, ... }: {
config,
lib,
pkgs,
...
}:
let let
svc_domain = "searx.${config.mine.shared.settings.domain}"; svc_domain = "searx.${config.mine.shared.settings.domain}";
port = 7378; port = 7378;
in { in
{
services.searx = { services.searx = {
enable = true; enable = true;
runInUwsgi = true; runInUwsgi = true;
@ -18,6 +24,13 @@ in {
base_url = "https://${svc_domain}"; base_url = "https://${svc_domain}";
secret_key = "@SECRET_KEY@"; secret_key = "@SECRET_KEY@";
}; };
search.formats = [
"html"
"json"
"rss"
"csv"
];
}; };
}; };
@ -37,9 +50,11 @@ in {
description = "We host our own searXNG, use it to search the web!"; description = "We host our own searXNG, use it to search the web!";
url = "https://${svc_domain}"; url = "https://${svc_domain}";
package = let package =
let
pkg = config.services.searx.package; pkg = config.services.searx.package;
in { in
{
name = pkg.pname; name = pkg.pname;
version = pkg.version; version = pkg.version;
meta = pkg.meta; meta = pkg.meta;