From 966e1976c4158993f5e83afc5212befb5ed216b4 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 21 Dec 2020 01:00:30 -0500 Subject: [PATCH] configure firefox --- modules/graphical.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/modules/graphical.nix b/modules/graphical.nix index cfa4612..a92a2ad 100644 --- a/modules/graphical.nix +++ b/modules/graphical.nix @@ -1,7 +1,6 @@ { config, pkgs, ... }: { environment.systemPackages = with pkgs; [ - firefox brave gimp mpv @@ -23,6 +22,28 @@ ]; }) + (wrapFirefox firefox-unwrapped { + extraPolicies = { + CaptivePortal = false; + DisablePocket = true; + DisableFirefoxStudies = true; + OfferToSaveLogins = false; + DisableFormHistory = true; + SearchSuggestEnabled = false; + EnableTrackingProtection = { + Value = true; + Locked = true; + Cryptomining = true; + Fingerprinting = true; + }; + Preferences = { + "extensions.formautofill.available" = { Status = "locked"; Value = "off"; }; + "network.cookie.cookieBehavior" = { Status = "locked"; Value = 4; }; + "network.IDN_show_punycode" = { Status = "locked"; Value = true; }; + }; + }; + }) + ]; services.xserver.deviceSection = ''