From 60ea144230510767172bb994279033c6859a4814 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Sat, 20 Jul 2024 20:37:10 +0100 Subject: [PATCH] Update firefox search engines Signed-off-by: Nikolaos Karaolidis --- .../user/configs/gui/firefox/default.nix | 60 ++----------------- 1 file changed, 4 insertions(+), 56 deletions(-) diff --git a/hosts/common/user/configs/gui/firefox/default.nix b/hosts/common/user/configs/gui/firefox/default.nix index 3f25952..0981deb 100644 --- a/hosts/common/user/configs/gui/firefox/default.nix +++ b/hosts/common/user/configs/gui/firefox/default.nix @@ -55,72 +55,20 @@ in "Google".metaData.alias = "@g"; "DuckDuckGo".metaData.alias = "@d"; "Wikipedia (en)".metaData.alias = "@w"; - - "Nix Packages" = { + "Nix" = { urls = [ { - template = "https://search.nixos.org/packages"; + template = "https://mynixos.com/search"; params = [ { - name = "type"; - value = "packages"; - } - { - name = "channel"; - value = "unstable"; - } - { - name = "query"; + name = "q"; value = "{searchTerms}"; } ]; } ]; - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = [ "@np" ]; - }; - - "Nix Options" = { - urls = [ - { - template = "https://search.nixos.org/options"; - params = [ - { - name = "type"; - value = "options"; - } - { - name = "channel"; - value = "unstable"; - } - { - name = "query"; - value = "{searchTerms}"; - } - ]; - } - ]; - - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = [ "@no" ]; - }; - - "Home Manager Options" = { - urls = [ - { - template = "https://home-manager-options.extranix.com/"; - params = [ - { - name = "query"; - value = "{searchTerms}"; - } - ]; - } - ]; - - icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = [ "@nh" ]; + definedAliases = [ "@n" ]; }; }; };