18 lines
457 B
Nix
18 lines
457 B
Nix
{ config,lib,pkgs, ... }:
|
|
|
|
lib.mkIf config.sSEARXNG.enable {
|
|
services.searx = {
|
|
enable = true;
|
|
redisCreateLocally = true;
|
|
package = pkgs.searxng;
|
|
|
|
environmentFile = "/etc/searx.env";
|
|
settings.server = {
|
|
bind_address = "0.0.0.0";
|
|
port = config.sSEARXNG.port;
|
|
};
|
|
settings.engines = lib.mapAttrsToList (name: value: { inherit name; } // value) {
|
|
"wikidata".disabled = true;
|
|
};
|
|
};
|
|
}
|