Add GitHub search engine

This commit is contained in:
Tibo De Peuter 2023-10-14 17:38:24 +02:00
parent ef69f9943a
commit 82a2d7bbea

View file

@ -6,7 +6,7 @@
package = pkgs.firefox.override {
cfg = {
enableTridactylNative = true;
speechSynthesisSupport = true;
speechSynthesisSupport = true; # Allow Text-to-speech in e.g. Discord
};
extraPolicies = {
DisableFirefoxStudies = true;
@ -36,6 +36,18 @@
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"GitHub" = {
urls = [{
template = "https://github.com/search";
params = [
{ name = "q"; value = "{searchTerms}"; }
{ name = "type"; value = "repositories"; }
];
}];
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
definedAliases = [ "@gh" ];
};
};
};
};