all repos — nixfiles @ main

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

system/settings/services/searchix-stable.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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";
          };
        };
      };
    };
  };
}