28 lines
648 B
Nix
28 lines
648 B
Nix
|
|
{ config, ... }:
|
|
let inherit (import ./lib.nix config) havenisms mkContainer; in
|
|
{
|
|
virtualisation.oci-containers.containers.searxng = mkContainer {
|
|
hostName = "search";
|
|
image = "docker.io/searxng/searxng:latest";
|
|
port = 8080;
|
|
public = true;
|
|
dependsOn = [
|
|
"valkey"
|
|
];
|
|
homepageOpts = {
|
|
group = "Apps";
|
|
name = "SearXNG";
|
|
icon = "searxng.svg";
|
|
description = "Web search proxy";
|
|
};
|
|
volumes = [
|
|
"/tank/config/searxng:/etc/searxng"
|
|
];
|
|
environment = {
|
|
SEARXNG_BASE_URL = "https://search.${havenisms}";
|
|
SEARXNG_REDIS_URL = "redis://valkey:6379/0";
|
|
};
|
|
};
|
|
}
|