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"];