extract non-container-specific stable searchix configuration
1 file changed, 63 insertions(+), 0 deletions(-)
changed files
A system/settings/services/searchix-stable.nix
@@ -0,0 +1,63 @@ +{ + inputs, + ... +}: +let + stableVersion = "26.05"; +in +{ + imports = [ + inputs.searchix.nixosModules.web + ]; + + nixpkgs.overlays = [ + inputs.searchix.overlays.default + ]; + + services.searchix = { + enable = true; + settings = { + web = { + searchTimeout = "2s"; + gracefulShutdownTimeout = "2s"; + otherInstance = { + name = "Searchix Unstable"; + url = "https://searchix.ovh"; + }; + }; + + importer = { + timeout = "45m"; + updateAt = "07:00:00"; + batchSize = 2000; + sources = { + nixpkgs = { + enable = true; + fetcher = "channel-nixpkgs"; + channel = "nixos-${stableVersion}"; + timeout = "30m"; + manpages = { + enable = true; + path = "/doc/manpage-urls.json"; + }; + }; + nixos = { + enable = true; + fetcher = "channel-nixpkgs"; + channel = "nixos-${stableVersion}"; + }; + darwin = { + enable = true; + fetcher = "download"; + url = "https://alinnow.github.io/nix-options/nix-darwin-stable"; + }; + home-manager = { + enable = true; + fetcher = "download"; + url = "https://alinnow.github.io/nix-options/home-manager-stable"; + }; + }; + }; + }; + }; +}