From 6aee8be1244a68f8bac7dbcb7bb1f35d3de888f8 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:43:37 +0100 Subject: [PATCH] Add search engines & plugins to firefox --- home/features/desktop/common/firefox.nix | 62 ++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/home/features/desktop/common/firefox.nix b/home/features/desktop/common/firefox.nix index 70993b7..78f5147 100644 --- a/home/features/desktop/common/firefox.nix +++ b/home/features/desktop/common/firefox.nix @@ -7,14 +7,70 @@ imports = [inputs.arkenfox.hmModules.default]; programs.firefox = { enable = true; + arkenfox = { enable = true; version = "119.0"; }; - profiles.Default.arkenfox = { - enable = true; - "0000".enable = true; + profiles.Default = { + extensions = with inputs.firefox-addons.packages."x86_64-linux"; [ + bitwarden + ublock-origin + darkreader + ]; + + search.engines = { + "Nix Packages" = { + urls = [ + { + template = "https://search.nixos.org/packages"; + params = [ + { + name = "type"; + value = "packages"; + } + { + name = "query"; + value = "{searchTerms}"; + } + ]; + } + ]; + + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = ["@np"]; + }; + + "Searx" = { + urls = [ + { + template = "https://paulgo.io/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + + iconUpdateURL = "https://paulgo.io/favicon.ico"; + definedAliases = ["@sx"]; + }; + }; + search.force = true; + search.default = "Searx"; + + settings = { + "dom.security.https_only_mode" = true; + "browser.download.panel.shown" = true; + "signon.rememberSignons" = false; + }; + arkenfox = { + enable = true; + "0000".enable = true; + }; }; };