From 60b9ae513da6a4b5679ec6d93044362a2ac769c3 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 12 Sep 2023 13:45:13 +0200 Subject: [PATCH] Firefox search engines --- modules/firefox.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/firefox.nix b/modules/firefox.nix index ecd5d98..8ab5561 100644 --- a/modules/firefox.nix +++ b/modules/firefox.nix @@ -18,6 +18,28 @@ profiles.default = { isDefault = true; settings = {}; + + search.default = "Startpage"; + search.engines = { + "Amazon.de".metaData.hidden = true; + "Bing".metaData.hidden = true; + "Google".metaData.hidden = true; + + "NixOS Wiki" = { + urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }]; + iconUpdateURL = "https://nixos.wiki/favicon.png"; + updateInterval = 24 * 60 * 60 * 1000; # Every day + definedAliases = [ "@nw" ]; + }; + + "Startpage" = { + urls = [{ template = "https://www.startpage.com/sp/search?query={searchTerms}"; }]; + iconUpdateURL = "https://www.startpage.com/sp/cdn/favicons/favicon-32x32--default.png"; + updateInterval = 24 * 60 * 60 * 1000; # Every day + definedAliases = [ "@sp" ]; + }; + }; + # https://mipmip.github.io/home-manager-option-search/?query=firefox.profiles.%3Cname%3E.extensions # https://nur.nix-community.org/repos/rycee/ extensions = with pkgs.nur.repos.rycee.firefox-addons; [