feat(firefox):add Github Nix Code search engine
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-12 16:01:02 -05:00
parent 7531d3a147
commit 04a7c6f20d

View file

@ -6,7 +6,7 @@ self: {
}: let }: let
inherit (self.scopedPackages.${pkgs.system}) firefoxAddons; inherit (self.scopedPackages.${pkgs.system}) firefoxAddons;
inherit (lib) attrValues mkIf mkOption types; inherit (lib) attrsToList attrValues mkIf mkOption types;
cfg = config.programs.firefox; cfg = config.programs.firefox;
@ -123,6 +123,20 @@ in {
definedAliases = ["@s"]; definedAliases = ["@s"];
}; };
"Github Nix Code" = {
urls = [
{
template = "https://github.com/search";
params = attrsToList {
"type" = "code";
"q" = "lang:nix NOT is:fork {searchTerms}";
};
}
];
iconUpdateURL = "https://github.com/favicon.ico";
definedAliases = ["@gn"];
};
"Nixpkgs" = { "Nixpkgs" = {
urls = [ urls = [
{ {
@ -209,6 +223,7 @@ in {
"DuckDuckGo" "DuckDuckGo"
"MyNixos" "MyNixos"
"NixOS Wiki" "NixOS Wiki"
"Github Nix Code"
"Nixpkgs" "Nixpkgs"
"Noogle" "Noogle"
"Wikipedia (en)" "Wikipedia (en)"