aboutsummaryrefslogtreecommitdiff
path: root/firefox-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'firefox-configuration.nix')
-rw-r--r--firefox-configuration.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/firefox-configuration.nix b/firefox-configuration.nix
new file mode 100644
index 0000000..1e850f5
--- /dev/null
+++ b/firefox-configuration.nix
@@ -0,0 +1,59 @@
+{ ... }: {
+/* activeProfiles = with profiles; [
+ defaults
+
+ addons.disableExtensionSignatureChecking
+ addons.privacybadger
+ addons.noscriptFork
+ addons.qwantjuniorSystem
+
+ minimalConnections
+ minimalHome
+
+];*/
+
+
+ ocsp.enable = false;
+ safebrowsing.disableAll = true;
+
+ features = {
+ disableAccounts = true;
+ disableMedia = true;
+ disableLocation = true;
+ disablePocket = true;
+ disableStudies = true;
+ disableNormandy = true;
+ disableUpdates = true;
+ };
+
+ ui.removeClutter = true;
+
+ dataFrugality = {
+ forgetActivity = true;
+ replaceAllUrls = true;
+ };
+
+ trackingProtection.disableAll = true;
+
+ # This is very hacky, but Firefox really resists setting the default search engine
+ # by any other means. Only builtin search engines are allowed to make themselves default
+ # without prompting for user consent.
+ omnija.browser.patchCommand =
+ let searchEnginesInfo = {
+ default = {
+ searchDefault = "qwantjunior";
+ searchOrder = [ "qwantjunior" "ddg" ];
+ visibleDefaultEngines = [ "qwantjunior" "ddg" ];
+ };
+ regionOverrides = {};
+ locales = {};
+ };
+ in ''
+ pushd chrome/browser/search-extensions
+ cp -r ${addons/qwantjunior} ./qwantjunior
+ cp ${builtins.toFile "list.json" (builtins.toJSON searchEnginesInfo)} list.json
+ popd
+ '';
+
+ policies.RequestedLocales = [ "de-DE" "en-US" ];
+}