From ba9dcb8026e7e44f50bf50119cc88fa47b7c3d6d Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sat, 14 Oct 2023 17:38:24 +0200 Subject: [PATCH] Add GitHub search engine --- nixos/modules/apps/firefox/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/modules/apps/firefox/default.nix b/nixos/modules/apps/firefox/default.nix index eb0ca04..56e0eb2 100644 --- a/nixos/modules/apps/firefox/default.nix +++ b/nixos/modules/apps/firefox/default.nix @@ -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" ]; + }; }; }; };