From 5c4bf0f023216380941ef1cfc3ff160955131a7b Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Mon, 25 Nov 2024 01:11:59 -0700 Subject: [PATCH] Add home-manager options search engine to firefox --- home-manager/modules/firefox.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/home-manager/modules/firefox.nix b/home-manager/modules/firefox.nix index ad1ade0..db72386 100755 --- a/home-manager/modules/firefox.nix +++ b/home-manager/modules/firefox.nix @@ -114,7 +114,15 @@ search = { force = true; default = "SearXNG"; - order = [ "SearXNG" "Google" "Wikipedia" "Nix Packages" "NixOS Options" "NixOS Wiki" ]; + order = [ + "SearXNG" + "Google" + "Wikipedia" + "Nix Packages" + "NixOS Options" + "Home Manager Options" + "NixOS Wiki" + ]; engines = { # Nix Package Search "Nix Packages" = { @@ -125,7 +133,7 @@ { name = "query"; value = "{searchTerms}"; } ]; }]; - icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@np" ]; }; # NixOS Options Search @@ -137,9 +145,18 @@ { name = "query"; value = "{searchTerms}"; } ]; }]; - icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@no" ]; }; + # Nix Home-Manager options search + "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 = [ "@ho" ]; + }; # NixOS Wiki Search "NixOS Wiki" = { urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];