mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 13:24:38 -05:00
26 lines
461 B
Nix
26 lines
461 B
Nix
{
|
|
flake,
|
|
config,
|
|
configHelpers,
|
|
...
|
|
}:
|
|
let
|
|
inherit (flake.config.machines.devices) ceres;
|
|
in
|
|
{
|
|
port = configHelpers.service.ports.port0;
|
|
bind_address = configHelpers.localhost;
|
|
secret_key = config.sops.secrets.searx-key.path;
|
|
limiter = false;
|
|
public_instance = false;
|
|
image_proxy = true;
|
|
method = "GET";
|
|
}
|
|
// (
|
|
if configHelpers.hostname == ceres.name then
|
|
{
|
|
base_url = "https://${configHelpers.host}";
|
|
}
|
|
else
|
|
{ }
|
|
)
|