aboutsummaryrefslogtreecommitdiff
path: root/nix/search.nix
blob: 516463ad2117aeb5ab1e3bd0ffc9c09657f97d9b (plain)
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
# This tries to create a good-enough search.json.mozlz4 file, but that
# is unsupported, undocumented, and probably going to break every other release.

{ pkgs, lib }:

with lib;
rec {
  mkSearchConfig = engines: {
    version = 1;
    buildID = "20200202170918";
    appVersion = "72.0.2";
    locale = "und"; # undetermined (?)
    visibleDefaultEngines = [ "qwant-junior" ];

    metaData.searchDefaultExpir = 1581600883568;

    inherit engines;
  };

  engines = {
    qwantjunior = {
      _name = "Qwant Junior";
      _shortName = "qwant-junior";
      _loadPath = "[other]addEngineWithDetails:qwantjunior@search.mozilla.org";
      description = "Qwant Junior";
    };
  };
}