home/browser: steal github nix config search engine from @pbsds

This commit is contained in:
2025-04-02 14:56:09 +02:00
parent 65d8f6b7b3
commit e541f67ecf
2 changed files with 24 additions and 3 deletions
+21 -1
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
"Amazon.com".metaData.hidden = true;
"Bing".metaData.hidden = true;
@@ -57,6 +57,26 @@
definedAliases = [ "gh" ];
};
"GitHub Nix Configs" = {
urls = [{
template = "https://github.com/search";
params = [
{ name = "type"; value = "code"; }
{
name = "q";
value = lib.concatStringsSep " " [
"lang:nix"
"-is:fork"
"-repo:nixos/nixpkgs"
"{searchTerms}"
];
}
];
}];
icon = "${pkgs.super-tiny-icons}/share/icons/SuperTinyIcons/svg/github.svg";
definedAliases = [ "ghn" ];
};
"HomeManager Options" = {
urls = [{
template = "https://mipmip.github.io/home-manager-option-search/?{searchTerms}";