mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
40 lines
902 B
Nix
40 lines
902 B
Nix
_:
|
|
{ config, pkgs, ... }:
|
|
{
|
|
sops.secrets.searxngenv = { };
|
|
users.users.${config.services.nginx.user}.extraGroups = [ "searx" ];
|
|
services.searx = {
|
|
enable = true;
|
|
package = pkgs.searxng;
|
|
runInUwsgi = true;
|
|
uwsgiConfig = {
|
|
socket = "/run/searx/searx.sock";
|
|
chmod-socket = "660";
|
|
disable-logging = true;
|
|
};
|
|
environmentFile = config.sops.secrets.searxngenv.path;
|
|
settings = {
|
|
general.instance_name = "Gerg search";
|
|
server = {
|
|
secret_key = "@SEARXNG_SECRET@";
|
|
base_url = "https://search.gerg-l.com";
|
|
};
|
|
search.formats = [
|
|
"html"
|
|
"json"
|
|
];
|
|
engines = [
|
|
{
|
|
name = "bing";
|
|
disabled = true;
|
|
}
|
|
{
|
|
name = "brave";
|
|
disabled = true;
|
|
}
|
|
];
|
|
ui.theme_args.simple_style = "dark";
|
|
};
|
|
};
|
|
_file = ./searxng.nix;
|
|
}
|