From b761f7218b697da8f58e57faa5ffa90ccd72d35d Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 23 Oct 2024 18:03:43 +0200 Subject: [PATCH] system/services/searx: setup default search settings --- system/services/searx.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/services/searx.nix b/system/services/searx.nix index 13c891b..19ef833 100644 --- a/system/services/searx.nix +++ b/system/services/searx.nix @@ -4,6 +4,11 @@ enable = true; package = pkgs.searxng; settings = { + search = { + safe_search = 1; # 0 = None, 1 = Moderate, 2 = Strict + autocomplete = "google"; # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off by default + default_lang = "en"; + }; server = { secret_key = "TODO_USE_SOPS_INSTEAD"; port = 8888; # Internal port @@ -48,4 +53,3 @@ allowedTCPPorts = [80 443]; # For Caddy }; } -