Add amazon as a new firefox search engine
Amazon is set as a Firefox default search engine, so it is in our best
interests to add it as an option here (doing so will allow us to remove
it from Nix when someone /doesn't/ select it)
Change-Id: Idf7b776bcd626b543b72e6c47bec6dec6cc4dad3
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/506
Reviewed-by: Skyler Grey <minion@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/home/browser/firefox/search/default.nix b/modules/home/browser/firefox/search/default.nix
index 40faf1f..1f68a7d 100644
--- a/modules/home/browser/firefox/search/default.nix
+++ b/modules/home/browser/firefox/search/default.nix
@@ -5,6 +5,7 @@
...
}: let
possibleEngines = [
+ "Amazon"
"Arch Wiki"
"Bing"
"DuckDuckGo"
@@ -40,6 +41,7 @@
default search engine.
1:
+ Amazon -> amazon
Arch Wiki -> arch
Bing -> bing
DuckDuckGo -> ddg
@@ -84,6 +86,10 @@
config =
let
engineData = {
+ "Amazon" = {
+ homepage = "https://amazon.com";
+ metaData.alias = "amazon";
+ };
"Arch Wiki" = {
urls = [ { template = "https://wiki.archlinux.org/index.php?search={searchTerms}"; } ];
iconUpdateURL = "https://wiki.archlinux.org/favicon.ico";
@@ -178,13 +184,6 @@
metaData.alias = "wiki";
};
};
- firefoxDefaultEngines = [
- "Bing"
- "Google"
- "eBay"
- "DuckDuckGo"
- "Wikipedia (en)"
- ];
calculated = lib.pipe engineData [
(lib.filterAttrs (engine: _: builtins.elem engine config.chimera.browser.firefox.search.engines))
(builtins.mapAttrs (