Add rust search engines to firefox

Change-Id: I64e5cd6745f133b5e5ad36bd15d765415e08778c
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/511
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/homes/x86_64-linux/minion@greylag/default.nix b/homes/x86_64-linux/minion@greylag/default.nix
index 229e172..52db52b 100644
--- a/homes/x86_64-linux/minion@greylag/default.nix
+++ b/homes/x86_64-linux/minion@greylag/default.nix
@@ -97,6 +97,8 @@
           "Home-Manager Options"
           "Noogle"
           "GitHub"
+          "Docs.rs"
+          "Crates.io"
           "Arch Wiki"
           "Gentoo Wiki"
         ];
diff --git a/modules/home/browser/firefox/search/default.nix b/modules/home/browser/firefox/search/default.nix
index 1f68a7d..857e8f3 100644
--- a/modules/home/browser/firefox/search/default.nix
+++ b/modules/home/browser/firefox/search/default.nix
@@ -8,6 +8,8 @@
     "Amazon"
     "Arch Wiki"
     "Bing"
+    "Crates.io"
+    "Docs.rs"
     "DuckDuckGo"
     "eBay"
     "Gentoo Wiki"
@@ -44,6 +46,8 @@
           Amazon -> amazon
           Arch Wiki -> arch
           Bing -> bing
+          Crates.io -> crates
+          Docs.rs -> rs
           DuckDuckGo -> ddg
           eBay -> ebay
           Gentoo Wiki -> gentoo
@@ -68,6 +72,8 @@
         "Home-Manager Options"
         "Noogle"
         "GitHub"
+        "Docs.rs"
+        "Crates.io"
       ];
       example = [
         "Kagi"
@@ -77,6 +83,8 @@
         "Home-Manager Options"
         "Noogle"
         "GitHub"
+        "Docs.rs"
+        "Crates.io"
         "Arch Wiki"
         "Gentoo Wiki"
       ];
@@ -101,6 +109,20 @@
           homepage = "https://bing.com";
           metaData.alias = "bing";
         };
+        "Crates.io" = {
+          urls = [ { template = "https://crates.io/search?q={searchTerms}"; } ];
+          iconUpdateURL = "https://crates.io/favicon.ico";
+          updateInterval = 24 * 60 * 60 * 1000;
+          definedAliases = [ "crates" ];
+          homepage = "https://crates.io";
+        };
+        "Docs.rs" = {
+          urls = [ { template = "https://docs.rs/releases/search?query={searchTerms}"; } ];
+          iconUpdateURL = "https://docs.rs/favicon.ico";
+          updateInterval = 24 * 60 * 60 * 1000;
+          definedAliases = [ "rs" ];
+          homepage = "https://docs.rs";
+        };
         "DuckDuckGo" = {
           homepage = "https://duckduckgo.com";
           metaData.alias = "ddg";