feat(firefox): add Nixpkgs repo search as search engine
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-14 17:41:52 -05:00
parent b5aab9d19d
commit 92eef76b32

View file

@ -79,24 +79,15 @@ in {
default = "DuckDuckGo"; default = "DuckDuckGo";
force = true; force = true;
engines = { engines = {
"Nix Packages" = { "Nixpkgs" = {
urls = [ urls = [
{ {
template = "https://search.nixos.org/packages"; template = "https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20{searchTerms}&type=code";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
} }
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake-white.svg"; iconUpdateURL = "https://github.githubassets.com/favicons/favicon.png";
definedAliases = ["@np"]; updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = ["@pkgs"];
}; };
"NixOS Wiki" = { "NixOS Wiki" = {
@ -173,7 +164,7 @@ in {
"DuckDuckGo" "DuckDuckGo"
"MyNixos" "MyNixos"
"NixOS Wiki" "NixOS Wiki"
"Nix Packages" "Nixpkgs"
"Noogle" "Noogle"
"Wikipedia (en)" "Wikipedia (en)"
"YouTube" "YouTube"