From c226503b708f62b0db7f078a8ab3f3191823ce16 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Sat, 25 May 2024 17:26:48 +0200 Subject: [PATCH] Add Hackage and crates.io to search engines --- home/modules/firefox.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix index 6950b1b..202484b 100644 --- a/home/modules/firefox.nix +++ b/home/modules/firefox.nix @@ -179,6 +179,26 @@ with inputs; { updateInterval = 24 * 60 * 60 * 1000; # every day definedAliases = ["@ghu"]; }; + "Hackage" = { + urls = [ + { + template = "https://hackage.haskell.org/packages/browse?terms={searchTerms}"; + } + ]; + iconUpdateURL = "https://hackage.haskell.org/static/favicon.png"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@hak"]; + }; + "crates.io" = { + urls = [ + { + template = "https://crates.io/search?q={searchTerms}"; + } + ]; + iconUpdateURL = "https://crates.io/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@cio"]; + }; "Bing".metaData.hidden = true; "Google".metaData.hidden = true;