From 837233b5526d287e684344887f23136c46069006 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 17 Mar 2026 18:16:41 +0100 Subject: [PATCH] Modules/Firefox: Update search engines --- home/homemodules/firefox/default.nix | 76 ++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 11 deletions(-) diff --git a/home/homemodules/firefox/default.nix b/home/homemodules/firefox/default.nix index b879304e..8ed0216c 100644 --- a/home/homemodules/firefox/default.nix +++ b/home/homemodules/firefox/default.nix @@ -163,12 +163,19 @@ in { "google" ]; - engines = { + engines = let + mkMan = section: page: p: { + name = "Man Pages - ${section}"; + urls = [{template = "https://man7.org/linux/man-pages/man${page}/{searchTerms}.${page}${p}.html";}]; + iconMapObj."16" = "https://man7.org/favicon.ico"; + definedAliases = ["@man${page}"]; + }; + in { kagi = { name = "Kagi"; urls = [{template = "https://kagi.com/search?q={searchTerms}";}]; iconMapObj."16" = "https://kagi.com/favicon.ico"; - definedAliases = ["@k"]; + definedAliases = ["@kg"]; }; wiki = { @@ -178,13 +185,34 @@ in { definedAliases = ["@w"]; }; - nixos-packages = { - name = "NixOS Packages"; + searchix = { + name = "Searchix"; urls = [{template = "https://searchix.ovh/?query={searchTerms}";}]; iconMapObj."16" = "https://nixos.org/favicon.ico"; + definedAliases = ["@ns"]; + }; + + nixos-packages = { + name = "Nix Packages"; + urls = [{template = "https://search.nixos.org/packages?channel=unstable?query={searchTerms}";}]; + iconMapObj."16" = "https://nixos.org/favicon.ico"; definedAliases = ["@np"]; }; + nixos-options = { + name = "NixOS Options"; + urls = [{template = "https://search.nixos.org/options?channel=unstable?query={searchTerms}";}]; + iconMapObj."16" = "https://nixos.org/favicon.ico"; + definedAliases = ["@no"]; + }; + + home-manager-options = { + name = "Home Manager Options"; + urls = [{template = "https://home-manager-options.extranix.com/?query={searchTerms}";}]; + iconMapObj."16" = "https://nixos.org/favicon.ico"; + definedAliases = ["@hm"]; + }; + nixos-functions = { name = "NixOS Functions"; urls = [{template = "https://noogle.dev/q?term={searchTerms}";}]; @@ -192,6 +220,13 @@ in { definedAliases = ["@nf"]; }; + nixpkgs-issues = { + name = "Nixpkgs Issues"; + urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue%20{searchTerms}";}]; + iconMapObj."16" = "https://github.com/favicon.ico"; + definedAliases = ["@ni"]; + }; + nixos-wiki = { name = "NixOS Wiki"; urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}]; @@ -206,13 +241,6 @@ in { definedAliases = ["@aw"]; }; - nixpkgs-issues = { - name = "Nixpkgs Issues"; - urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue%20{searchTerms}";}]; - iconMapObj."16" = "https://github.com/favicon.ico"; - definedAliases = ["@i"]; - }; - github = { name = "GitHub"; urls = [{template = "https://github.com/search?q={searchTerms}&type=repositories";}]; @@ -220,6 +248,32 @@ in { definedAliases = ["@gh"]; }; + man0 = mkMan "POSIX" "0" "p"; + man1 = mkMan "Commands" "1" ""; + man2 = mkMan "Syscalls" "2" ""; + man3 = mkMan "C Functions" "3" ""; + + stackoverflow = { + name = "Stack Overflow"; + urls = [{template = "https://stackoverflow.com/search?q={searchTerms}";}]; + iconMapObj."16" = "https://stackoverflow.com/favicon.ico"; + definedAliases = ["@so"]; + }; + + x86 = { + name = "x86 Ref"; + urls = [{template = "https://www.felixcloutier.com/x86/{searchTerms}";}]; + iconMapObj."16" = "https://www.felixcloutier.com/favicon.ico"; + definedAliases = ["@x86"]; + }; + + youtube = { + name = "YouTube"; + urls = [{template = "https://www.youtube.com/results?search_query={searchTerms}";}]; + iconMapObj."16" = "https://www.youtube.com/favicon.ico"; + definedAliases = ["@yt"]; + }; + google.metaData.alias = "@g"; # Hide bullshit