From a6ba484acf05f4412e77d82ae24b99ecff32d187 Mon Sep 17 00:00:00 2001 From: chaos Date: Sun, 4 Aug 2024 14:21:54 +0100 Subject: [PATCH] add more privacy&security prefs for firefox --- profiles/home-manager/apps/firefox.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/profiles/home-manager/apps/firefox.nix b/profiles/home-manager/apps/firefox.nix index 765e842..4e3720e 100644 --- a/profiles/home-manager/apps/firefox.nix +++ b/profiles/home-manager/apps/firefox.nix @@ -155,6 +155,28 @@ in { ]; }; + # Tracking, Privacy, Security + "privacy.donottrackheader.enabled" = true; + "privacy.globalprivacycontrol.enabled" = true; + "browser.contentblocking.category" = "strict"; + "privacy.resistFingerprinting" = true; + "privacy.query_stripping.enabled" = true; + "network.cookie.sameSite.noneRequiresSecure" = true; + "browser.uitour.enabled" = true; + "security.ssl.treat_unsafe_negotiation_as_broken" = true; + "browser.xul.error_pages.expert_bad_cert" = true; + "security.tls.enable_0rtt_data" = false; + "browser.privatebrowsing.forceMediaMemoryCache" = true; + "browser.urlbar.trimHttps" = true; + "security.insecure_connection_text.enabled" = true; + "security.insecure_connection_text.pbmode.enabled" = true; + "browser.urlbar.quicksuggest.enabled" = false; + "browser.urlbar.suggest.quicksuggest.sponsored" = false; + "browser.urlbar.suggest.quicksuggest.nonsponsored" = false; + "browser.urlbar.groupLabels.enabled" = false; + "dom.security.https_first" = true; + "dom.security.https_only_mode_error_page_user_suggestions" = true; + # Performance "content.notify.interval" = 100000; "gfx.canvas.accelerated.cache-items" = 4096;