[Nix] Adds MCP config.
This commit is contained in:
27
system/hosts/mcp/containers/searxng.nix
Normal file
27
system/hosts/mcp/containers/searxng.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
let inherit (import ./lib.nix config) 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.${config.domainName}";
|
||||
SEARXNG_REDIS_URL = "redis://valkey:6379/0";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user