From e2825982144ab224503f37423a0e91029523e195 Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 13 Dec 2024 09:01:44 -0500 Subject: [PATCH] add modrinth search engines --- home-manager/browser.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/home-manager/browser.nix b/home-manager/browser.nix index b1bbeb7..3aba65d 100644 --- a/home-manager/browser.nix +++ b/home-manager/browser.nix @@ -65,6 +65,10 @@ in "Nix Options" "NixOS Wiki" "ProtonDB" + "Modrinth Mods" + "Modrinth Modpacks" + "Modrinth Plugins" + "Modrinth Datapacks" ]; engines = { "Bing".metaData.hidden = true; @@ -146,6 +150,38 @@ in "proton" ]; }; + "Modrinth Mods" = { + urls = [ { template = "https://modrinth.com/mod/{searchTerms}"; } ]; + iconUpdateURL = "https://modrinth.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = [ + "@mm" + ]; + }; + "Modrinth Modpacks" = { + urls = [ { template = "https://modrinth.com/modpack/{searchTerms}"; } ]; + iconUpdateURL = "https://modrinth.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = [ + "@mmp" + ]; + }; + "Modrinth Plugins" = { + urls = [ { template = "https://modrinth.com/plugin/{searchTerms}"; } ]; + iconUpdateURL = "https://modrinth.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = [ + "@mp" + ]; + }; + "Modrinth Datapacks" = { + urls = [ { template = "https://modrinth.com/datapack/{searchTerms}"; } ]; + iconUpdateURL = "https://modrinth.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = [ + "@md" + ]; + }; }; }; };