From 78b93df27a13dbfdc23c7091e8c0e9aee511b3e4 Mon Sep 17 00:00:00 2001 From: Tyler Beckman Date: Fri, 22 Nov 2024 12:29:00 -0700 Subject: [PATCH] Add nixos options search to firefox --- home-manager/modules/firefox.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/firefox.nix b/home-manager/modules/firefox.nix index 1896e03..f3f691b 100755 --- a/home-manager/modules/firefox.nix +++ b/home-manager/modules/firefox.nix @@ -93,7 +93,7 @@ search = { force = true; default = "SearXNG"; - order = [ "SearXNG" "Google" "Wikipedia" "Nix Packages" "NixOS Wiki" ]; + order = [ "SearXNG" "Google" "Wikipedia" "Nix Packages" "NixOS Options" "NixOS Wiki" ]; engines = { # Nix Package Search "Nix Packages" = { @@ -107,6 +107,18 @@ icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@np" ]; }; + # NixOS Options Search + "NixOS Options" = { + urls = [{ + template = "https://search.nixos.org/options"; + params = [ + { name = "type"; value = "packages"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@no" ]; + }; # NixOS Wiki Search "NixOS Wiki" = { urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];