feat: added searXNG to Ceres

This commit is contained in:
Nick 2025-03-08 03:31:43 -06:00
parent 71741eef92
commit 2c08bf0287

View file

@ -5,7 +5,7 @@
...
}:
let
inherit (flake.config.machines.devices) mars ceres;
inherit (flake.config.machines.devices) ceres;
inherit (flake.config.services.instances) searx web;
service = searx;
hostname = config.networking.hostName;
@ -50,7 +50,8 @@ in
ban_time_on_fail = 5;
max_ban_time_on_fail = 120;
};
server = {
server =
{
port = service.ports.port0;
bind_address = localhost;
secret_key = config.sops.secrets.searx-key.path;
@ -58,7 +59,15 @@ in
public_instance = false;
image_proxy = true;
method = "GET";
} // (if hostname == ceres.name then { base_url = host; } else { });
}
// (
if hostname == ceres.name then
{
base_url = host;
}
else
{ }
);
engines = lib.mapAttrsToList (name: value: { inherit name; } // value) {
"duckduckgo".disabled = false;
"brave".disabled = false;
@ -171,6 +180,9 @@ in
{ }
);
users.groups.searx.members = [ "caddy" ];
systemd.services.caddy.serviceConfig.ProtectHome = false;
sops =
let
sopsPath = secret: {