mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 05:14:41 -05:00
27 lines
461 B
Nix
27 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
|
||
|
{ }
|
||
|
)
|