mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 04:56:34 +05:30
44 lines
831 B
Nix
44 lines
831 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
services = {
|
|
searx = {
|
|
enable = true;
|
|
package = pkgs.searxng;
|
|
environmentFile = config.sops.secrets.searx_secret_key.path;
|
|
settings = {
|
|
general = {
|
|
instance_name = "SearXNG";
|
|
};
|
|
server = {
|
|
bind_address = "0.0.0.0";
|
|
port = 3415;
|
|
base_url = "https://sx.tux.rs";
|
|
secret_key = "@secret_key@";
|
|
};
|
|
search = {
|
|
autocomplete = "google";
|
|
};
|
|
};
|
|
};
|
|
|
|
nginx = {
|
|
enable = lib.mkForce true;
|
|
virtualHosts = {
|
|
"sx.tux.rs" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://localhost:3415";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|