NixServerConfig/module/searXNG.nix
Wateir d4d7073344 Add of vaulwarden
Some refractoring and start of a more versatil config
2025-12-17 23:11:49 +01:00

21 lines
674 B
Nix

{ config,lib,pkgs, ... }:
lib.mkIf (config.networking.hostName == "ThinkCentre-Server-004"){
services.searx = {
enable = true;
redisCreateLocally = true;
package = pkgs.searxng;
environmentFile = "/etc/searx.env";
settings.server = {
bind_address = "0.0.0.0";
port = 1692;
# WARNING: setting secret_key here might expose it to the nix cache
# see below for the sops or environment file instructions to prevent this
# secret_key = "$SEARXNG_SECRET";
};
settings.engines = lib.mapAttrsToList (name: value: { inherit name; } // value) {
"wikidata".disabled = true;
};
};
}