feat(firefox): add Nixpkgs repo search as search engine
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
b5aab9d19d
commit
92eef76b32
1 changed files with 6 additions and 15 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue