From 280e2fc214bd1fe6627cfebb3d408b2a431833af Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sun, 21 Apr 2024 23:03:15 +0200 Subject: [PATCH] Search engine stuff doesn't seem to work with policies, let's see what config can do --- home-manager/package-configs/firefox.nix | 1 + .../desktop/package-configs/firefox/default.nix | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/home-manager/package-configs/firefox.nix b/home-manager/package-configs/firefox.nix index 89e15fc..2364ce5 100644 --- a/home-manager/package-configs/firefox.nix +++ b/home-manager/package-configs/firefox.nix @@ -25,6 +25,7 @@ "browser.urlbar.placeholderName" = "DuckDuckGo"; "browser.urlbar.placeholderName.private" = "DuckDuckGo"; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + "browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "DuckDuckGo"; }; userChrome = '' /* diff --git a/nixos/desktop/package-configs/firefox/default.nix b/nixos/desktop/package-configs/firefox/default.nix index e16de37..aceea80 100644 --- a/nixos/desktop/package-configs/firefox/default.nix +++ b/nixos/desktop/package-configs/firefox/default.nix @@ -21,22 +21,6 @@ OfferToSaveLogins = false; PasswordManagerEnabled = false; DownloadDirectory = "\${home}/Downloads"; - SearchEngines = { - # Add = [ - # { - # Name = "DuckDuckGo"; - # URLTemplate = "https://www.duckduckgo.org/?t=h_&q{searchTerms}&ia=web"; - # Method = "GET | POST"; - # IconURL = "https://www.duckduckgo.org/favicon.ico"; - # Alias = "duckduckgo"; - # Description = "DuckDuckGo Privacy Search Engine"; - # PostData = "name=value&q={searchTerms}"; - # SuggestURLTemplate = "https://www.duckduckgo.org/suggestions/q={searchTerms}"; - # } - # ]; - Default = "DuckDuckGo"; - Remove = ["Google" "Amazon" "eBay"]; - }; EnableTrackingProtection = { Value = true; Cryptomining = true;