all repos — nixfiles @ 508293d8d37548c2373f27adf9d869c24a10d018

System and user configuration, managed by nix and home-manager

extract non-container-specific stable searchix configuration

Alin
commit

508293d8d37548c2373f27adf9d869c24a10d018

parent

196fe94c67605d6349c4d18136d0bce185434021

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"; + }; + }; + }; + }; + }; +}