mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: added searXNG to Ceres
This commit is contained in:
parent
71741eef92
commit
2c08bf0287
1 changed files with 22 additions and 10 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue