diff options
Diffstat (limited to 'modules/home.legacy/conf/firefox/config/search/engines/default.nix')
-rw-r--r-- | modules/home.legacy/conf/firefox/config/search/engines/default.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/modules/home.legacy/conf/firefox/config/search/engines/default.nix b/modules/home.legacy/conf/firefox/config/search/engines/default.nix new file mode 100644 index 00000000..a47c77df --- /dev/null +++ b/modules/home.legacy/conf/firefox/config/search/engines/default.nix @@ -0,0 +1,84 @@ +{pkgs, ...}: { + # DEFAULT + "Brave Search" = { + urls = [{template = "https://search.brave.com/search?q={searchTerms}";}]; + icon = ./logos/brave.svg; + definedAliases = ["@bs"]; + }; + + # NIX + "Nix Packages" = { + urls = [{template = "https://search.nixos.org/packages?type=packages&query={searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@np"]; + }; + + "NixOS Options" = { + urls = [{template = "https://search.nixos.org/options?type=options&query={searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@no"]; + }; + "HomeManager Options" = { + urls = [{template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@nh"]; + }; + + "Nixpkgs issues" = { + urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@ni"]; + }; + "Nixpkgs pull requests" = { + urls = [{template = "https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+{searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@nr"]; + }; + + "Nixpkgs pull requests tracker" = { + urls = [{template = "https://nixpk.gs/pr-tracker.html?pr={searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@nt"]; + }; + "NixOS Wiki" = { + urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@nw"]; + }; + + # RUST + "Rust std" = { + urls = [{template = "https://doc.rust-lang.org/std/?search={searchTerms}";}]; + icon = ./logos/rust_std.svg; + definedAliases = ["@rs"]; + }; + "Rust tokio" = { + urls = [{template = "https://docs.rs/tokio/latest/tokio/index.html?search={searchTerms}";}]; + icon = ./logos/rust_tokio.png; + definedAliases = ["@rt"]; + }; + + # OTHER + "Google Scholar" = { + urls = [{template = "https://scholar.google.com/scholar?hl=en&q={searchTerms}";}]; + icon = ./logos/google_scholar.ico; + definedAliases = ["@gs"]; + }; + "Wikipedia" = { + urls = [{template = "https://en.wikipedia.org/wiki/{searchTerms}";}]; + icon = ./logos/wikipedia.svg; + definedAliases = ["@wp"]; + }; + "Arch Wiki" = { + urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}]; + icon = ./logos/arch_linux.svg; + definedAliases = ["@aw"]; + }; + + "Wikipedia (en)".metaData.hidden = true; + "DuckDuckGo".metaData.hidden = true; + "Bing".metaData.hidden = true; + "Google".metaData.hidden = true; + "Amazon.de".metaData.hidden = true; + "eBay".metaData.hidden = true; +} |