From 4408b7cd76b88d3778be5ade5ee46df8a3aac43c Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 23 Oct 2024 08:48:44 +0300 Subject: [PATCH] Firefox: Add Home Manager search. --- home/program/firefox/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/home/program/firefox/default.nix b/home/program/firefox/default.nix index cc85f22..29a4016 100644 --- a/home/program/firefox/default.nix +++ b/home/program/firefox/default.nix @@ -14,6 +14,16 @@ let (mkBookmark "Cloud" "https://cloud.voronind.com") ]; + searchEngines = [ + (mkSearchEngine "s" "SearX" "https://search.voronind.com/search?q={searchTerms}") + (mkSearchEngine "ru" "RuTracker" "https://rutracker.org/forum/tracker.php?nm={searchTerms}") + (mkSearchEngine "re" "Reddit" "https://www.reddit.com/search/?q={searchTerms}") + (mkSearchEngine "no" "NixOS Options" "https://search.nixos.org/options?query={searchTerms}") + (mkSearchEngine "np" "NixOS Packages" "https://search.nixos.org/packages?query={searchTerms}") + (mkSearchEngine "so" "Stack Overflow" "https://stackoverflow.com/search?tab=votes&q={searchTerms}") + (mkSearchEngine "hm" "Home Manager" "https://home-manager-options.extranix.com/?query={searchTerms}") + ]; + extensions = { "addon@darkreader.org" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi"; "cliget@zaidabdulla.com" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/cliget/latest.xpi"; @@ -28,15 +38,6 @@ let # "queryamoid@kaply.com" = mkExtension "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi"; }; - searchEngines = [ - (mkSearchEngine "s" "SearX" "https://search.voronind.com/search?q={searchTerms}") - (mkSearchEngine "ru" "RuTracker" "https://rutracker.org/forum/tracker.php?nm={searchTerms}") - (mkSearchEngine "re" "Reddit" "https://www.reddit.com/search/?q={searchTerms}") - (mkSearchEngine "no" "NixOS Options" "https://search.nixos.org/options?query={searchTerms}") - (mkSearchEngine "np" "NixOS Packages" "https://search.nixos.org/packages?query={searchTerms}") - (mkSearchEngine "so" "Stack Overflow" "https://stackoverflow.com/search?tab=votes&q={searchTerms}") - ]; - extraConfig = '' // Bookmarks. user_pref("browser.microsummary.enabled", true);