From 3d4267bd98a59a511d4d4e89301bc178095014de Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 25 Jan 2024 21:38:24 -0600 Subject: [PATCH] chore: update firefox for search engines Signed-off-by: jolheiser --- apps/gui/firefox.nix | 47 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/apps/gui/firefox.nix b/apps/gui/firefox.nix index b7f72cc..3277fd2 100644 --- a/apps/gui/firefox.nix +++ b/apps/gui/firefox.nix @@ -2,8 +2,42 @@ programs.firefox = { enable = true; profiles.default = { - search.default = "DuckDuckGo"; - search.force = true; + search = { + default = "Kagi"; + privateDefault = "DuckDuckGo"; + order = ["Kagi" "DuckDuckGo"]; + force = true; + engines = { + "Kagi" = { + definedAliases = ["@k"]; + urls = [ + { + template = "https://kagi.com/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + "DuckDuckGo" = { + definedAliases = ["@d"]; + urls = [ + { + template = "https://duckduckgo.com/"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + }; + }; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ bitwarden clearurls @@ -22,9 +56,9 @@ "browser.newtabpage.activity-stream.feeds.section.topstories" = false; "browser.newtabpage.activity-stream.showSponsoredTopSites" = false; "browser.newtabpage.pinned" = builtins.toJSON [ - {url = "https://mynixos.com/";} {url = "https://github.com/";} {url = "https://git.jojodev.com/";} + {url = "https://git.jolheiser.com";} ]; "browser.fixup.domainwhitelist.go" = true; # golink }; @@ -85,8 +119,15 @@ } ]; } + { + name = "ugit"; + tags = ["git" "ugit"]; + keyword = "ugit"; + url = "https://git.jolheiser.com"; + } ]; } + # Not in the toolbar, but still usable via keyword/searching { name = "Go Playground"; tags = ["golang"];