infra/services/hound/default.nix
2022-12-31 07:27:07 +01:00

27 lines
618 B
Nix

{ pkgs, ... }:
{
services.nginx.virtualHosts."search.nix-community.org" = {
enableACME = true;
forceSSL = true;
locations = {
"=/open_search.xml".alias = "${./open-search.xml}";
"/".proxyPass = "http://127.0.0.1:6080/";
};
};
services.hound = {
enable = true;
listen = "127.0.0.1:6080";
config = builtins.readFile ./hound.json;
package = pkgs.hound.overrideAttrs (_x: {
patches = [
./0001-Fail-to-start-if-any-repos-fail-to-index.patch
];
});
};
systemd.services.hound.serviceConfig = {
Restart = "always";
RestartSec = 5;
};
}