aboutsummaryrefslogtreecommitdiff
path: root/firefox-configuration.nix
diff options
context:
space:
mode:
authortilpner2020-06-15 09:53:06 +0200
committertilpner2020-06-15 09:53:06 +0200
commit367b0c114f38d5c332f5ee971ad13dd69e302dec (patch)
treeec0c5ee3e7e1f0a30517599e51bd0c8172635158 /firefox-configuration.nix
parent2992d92e6ce0d7c96ccded0747d8815d8cfed956 (diff)
downloadfirefox-profiles-367b0c114f38d5c332f5ee971ad13dd69e302dec.tar.gz
firefox-profiles-367b0c114f38d5c332f5ee971ad13dd69e302dec.tar.xz
firefox-profiles-367b0c114f38d5c332f5ee971ad13dd69e302dec.zip
WIP towards module based configuration
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" ];
+}