nixcfg/systems/x86_64-linux/sgx/searx.nix
Harald Hoyer 5075593ce0 feat(nix): add supported search formats to Searx config
- Added `html`, `json`, and `rss` to the `search.formats` list in `searx.nix`.
- Enhances flexibility by allowing multiple output formats for search results.
2026-02-06 13:45:18 +01:00

39 lines
759 B
Nix

{ pkgs, config, ... }:
{
sops.secrets."searx/secret_key".sopsFile = ../../../.secrets/sgx/searx.yaml;
services.searx = {
enable = true;
configureNginx = true;
domain = "search.hoyer.world";
uwsgiConfig = {
http = ":8081";
};
settings = {
server = {
secret_key = config.sops.secrets."searx/secret_key".path;
};
search.formats = [
"html"
"json"
"rss"
];
};
};
services.nginx.virtualHosts = {
"search.hoyer.world" = {
enableACME = false;
useACMEHost = "search.hoyer.world";
forceSSL = true;
};
};
security.acme.certs = {
"internal.hoyer.world" = {
extraDomainNames = [
"search.hoyer.world"
];
};
};
}