yuki: switch searxng to nix

This commit is contained in:
notohh 2023-10-10 15:42:00 -04:00
parent 20949f3300
commit a613280f7e
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 40 additions and 17 deletions

View file

@ -1,14 +1,43 @@
_: { {
virtualisation.oci-containers.containers.searxng = { pkgs,
image = "searxng/searxng:2023.6.10-5f11155c"; config,
volumes = [ ...
"/home/notoh/docker/searxng:/etc/searxng:rw" }: {
]; sops.secrets.searxng-secret = {};
environment = { networking.firewall.allowedTCPPorts = [8100];
INSTANCE_NAME = "SearXNG"; services.searx = {
package = pkgs.searxng;
enable = true;
environmentFile = config.sops.secrets.searxng-secret.path;
settings = {
general = {
debug = false;
instance_name = "SearXNG flake.sh";
enable_metrics = false;
contact_url = "mailto:contact@notohh.dev";
};
ui = {
default_theme = "simple";
theme_args = {
simple_style = "dark";
};
};
search = {
autocomplete = "google";
safe_search = 0;
default_lang = "en-US";
};
server = {
port = 8100;
bind_address = "0.0.0.0";
secret_key = "@SEARXNG_SECRET@";
base_url = "https://search.flake.sh/";
public_instance = true;
infinite_scroll = true;
};
redis = {
url = "redis://:searxng@100.94.214.100:6380";
};
}; };
ports = [
"8100:8080"
];
}; };
} }

View file

@ -15,11 +15,6 @@ _: {
entrypoints = ["web"]; entrypoints = ["web"];
service = "homarr"; service = "homarr";
}; };
searxng = {
rule = "Host(`searxng.internal.flake.sh`)";
entryPoints = ["web"];
service = "searxng";
};
stash = { stash = {
rule = "Host(`stash.internal.flake.sh`)"; rule = "Host(`stash.internal.flake.sh`)";
entrypoints = ["web"]; entrypoints = ["web"];
@ -45,7 +40,6 @@ _: {
stash.loadBalancer.servers = [{url = "http://localhost:9999";}]; stash.loadBalancer.servers = [{url = "http://localhost:9999";}];
homarr.loadBalancer.servers = [{url = "http://localhost:7575";}]; homarr.loadBalancer.servers = [{url = "http://localhost:7575";}];
dashdot.loadBalancer.servers = [{url = "http://localhost:4000";}]; dashdot.loadBalancer.servers = [{url = "http://localhost:4000";}];
searxng.loadBalancer.servers = [{url = "http://localhost:8100";}];
jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}]; jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}];
jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}]; jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}];
}; };