21 lines
674 B
Nix
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;
|
|
};
|
|
};
|
|
}
|