diff --git a/cluster/services/search/default.nix b/cluster/services/search/default.nix new file mode 100644 index 0000000..67886fc --- /dev/null +++ b/cluster/services/search/default.nix @@ -0,0 +1,13 @@ +{ tools, ... }: + +{ + services.search = { + nodes.host = [ "VEGAS" ]; + nixos.host = ./host.nix; + }; + + monitoring.blackbox.targets.search = { + address = "https://search.${tools.meta.domain}/healthz"; + module = "https2xx"; + }; +} diff --git a/hosts/VEGAS/services/searxng/default.nix b/cluster/services/search/host.nix similarity index 96% rename from hosts/VEGAS/services/searxng/default.nix rename to cluster/services/search/host.nix index f70ee6c..623bfce 100644 --- a/hosts/VEGAS/services/searxng/default.nix +++ b/cluster/services/search/host.nix @@ -8,7 +8,7 @@ in ]; links.searxng.protocol = "http"; - age.secrets.searxng-secrets.file = ../../../../secrets/searxng-secrets.age; + age.secrets.searxng-secrets.file = ../../../secrets/searxng-secrets.age; services.searx = { enable = true; runInUwsgi = true; diff --git a/hosts/VEGAS/services/searxng/proxy-shuffle.nix b/cluster/services/search/proxy-shuffle.nix similarity index 100% rename from hosts/VEGAS/services/searxng/proxy-shuffle.nix rename to cluster/services/search/proxy-shuffle.nix diff --git a/hosts/VEGAS/system.nix b/hosts/VEGAS/system.nix index 0519c70..d5cf75e 100644 --- a/hosts/VEGAS/system.nix +++ b/hosts/VEGAS/system.nix @@ -30,7 +30,6 @@ ./services/nix/nar-serve.nix ./services/object-storage ./services/reflex - ./services/searxng ./services/sso ./services/uptime-kuma ./services/vault