about summary refs log tree commit diff stats
path: root/hm/soispha/conf/firefox/config/search/engines/default.nix
blob: 6e8575b2f30144cf3158230df8456e4c3805622a (plain) (blame)
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
64
65
66
67
68
69
70
71
72
73
74
75
{pkgs, ...}: {
  "Brave Search" = {
    urls = [{template = "https://search.brave.com/search?q={searchTerms}";}];
    IconUpdateURL = "https://raw.githubusercontent.com/brave/brave-core/master/components/brave_welcome_ui/components/images/lion_logo.svg";
    updateInterval = 48; # every day
    definedAliases = ["@bs"];
  };

  # NIX
  "Nix Packages" = {
    urls = [{template = "https://search.nixos.org/packages?type=packages&query={searchTerms}";}];
    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    definedAliases = ["@np"];
  };
  "Nixpkgs issues" = {
    urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}];
    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    definedAliases = ["@ni"];
  };
  "Nix Options" = {
    urls = [{template = "https://search.nixos.org/options?type=options&query={searchTerms}";}];
    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    definedAliases = ["@no"];
  };
  "Homemanager Options" = {
    urls = [{template = "https://mipmip.github.io/home-manager-option-search/?query={searchTerms}";}];
    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    definedAliases = ["@nh"];
  };
  "NixOS Wiki" = {
    urls = [{template = "https://nixos.wiki/index.php?search={searchTerms}";}];
    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    definedAliases = ["@nw"];
  };

  "Arch Wiki" = {
    urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}];
    iconUpdateURL = "https://upload.wikimedia.org/wikipedia/commons/a/a5/Archlinux-icon-crystal-64.svg";
    updateInterval = 24;
    definedAliases = ["@aw"];
  };

  # RUST
  "Rust std" = {
    urls = [{template = "https://doc.rust-lang.org/std/?search={searchTerms}";}];
    iconUpdateURL = "https://rustacean.net/assets/rustacean-orig-noshadow.svg";
    updateInterval = 48;
    definedAliases = ["@rs"];
  };
  "Rust tokio" = {
    urls = [{template = "https://docs.rs/tokio/latest/tokio/index.html?search={searchTerms}";}];
    iconUpdateURL = "https://avatars.githubusercontent.com/u/20248544?s=200&v=4";
    updateInterval = 48;
    definedAliases = ["@rt"];
  };

  "Google Scholar" = {
    urls = [{template = "https://scholar.google.com/scholar?hl=en&q={searchTerms}";}];
    iconUpdateURL = "https://scholar.google.com/favicon.ico";
    updateInterval = 48;
    definedAliases = ["@gs"];
  };
  "Wikipedia" = {
    urls = [{template = "https://en.wikipedia.org/wiki/{searchTerms}";}];
    iconUpdateURL = "https://upload.wikimedia.org/wikipedia/en/8/80/Wikipedia-logo-v2.svg";
    updateInterval = 48;
    definedAliases = ["@wp"];
  };

  "Wikipedia (en)".metaData.hidden = true;
  "DuckDuckGo".metaData.hidden = true;
  "Bing".metaData.hidden = true;
  "Google".metaData.hidden = true;
  "Amazon.de".metaData.hidden = true;
}