feat: Update searxng

This commit is contained in:
uttarayan21
2025-07-25 03:31:30 +05:30
parent 9f213cc268
commit c8665b9205
4 changed files with 22 additions and 2 deletions

View File

@@ -50,7 +50,7 @@
# api_key_file = "${config.sops.secrets."gemini/api_key".path}";
models = [
{
name = "gemini-2.5-flash-preview-04-17";
name = "gemini-2.5-pro";
type = "chat";
}
];

View File

@@ -13,6 +13,7 @@
./zerotier.nix
./prowlarr.nix
./flaresolverr.nix
./searxng.nix
# ./home-assistant.nix
# ./jellyfin.nix

View File

@@ -37,7 +37,6 @@
WEBUI_AUTH = "False";
ENABLE_LOGIN_FORM = "False";
WEBUI_URL = "https://llama.darksailor.dev";
# OLLAMA_BASE_URL = "https://ollama.darksailor.dev/v1";
OPENAI_BASE_URL = "https://ollama.darksailor.dev/v1";
};
environmentFile = "${config.sops.templates."LLAMA_API_KEY.env".path}";

View File

@@ -0,0 +1,20 @@
{config, ...}: {
services.searx = {
enable = true;
# configureUwsgi = true;
# uwsgiConfig = {
# socket = "/run/searx/searx.sock";
# chmod-socket = "660";
# };
settings = {
server = {
port = "8889";
secret_key = "foobar";
base_url = "https://search.darksailor.dev";
};
};
};
services.caddy.virtualHosts."search.darksailor.dev".extraConfig = ''
reverse_proxy localhost:8889
'';
}