diff options
author | lassulus <lass@xerxes.r> | 2019-10-22 18:17:52 +0200 |
---|---|---|
committer | lassulus <lass@xerxes.r> | 2019-10-22 18:17:52 +0200 |
commit | 5ab261df3ad4841e1ed7b0e3e9b1a52eb90f97ba (patch) | |
tree | b2f878ef06919fd8d201fa8e80a05b890f1f2bd9 /jeschli/2configs/firefox.nix | |
parent | 002913eb9bb516f0f39ef6ca26593953145d42e1 (diff) | |
parent | a6f7523edde0a4480cc23f4cd8f20a5a9b4d95af (diff) |
Merge remote-tracking branch 'enklave/master'
Diffstat (limited to 'jeschli/2configs/firefox.nix')
-rw-r--r-- | jeschli/2configs/firefox.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/jeschli/2configs/firefox.nix b/jeschli/2configs/firefox.nix new file mode 100644 index 000000000..d171fa82d --- /dev/null +++ b/jeschli/2configs/firefox.nix @@ -0,0 +1,53 @@ +{ config, pkgs, ... }: + +let + + # Firefox addons + https-everywhere = pkgs.callPackage ./own-pkgs/https-everywhere {}; + ublock-origin = pkgs.callPackage ./own-pkgs/ublock-origin {}; + webgl-fingerprint-defender = pkgs.callPackage ./own-pkgs/webgl-fingerprint-defender {}; + canvas-fingerprint-defender = pkgs.callPackage ./own-pkgs/canvas-fingerprint-defender {}; + audio-fingerprint-defender = pkgs.callPackage ./own-pkgs/audio-fingerprint-defender {}; + font-fingerprint-defender = pkgs.callPackage ./own-pkgs/font-fingerprint-defender {}; + user-agent-switcher = pkgs.callPackage ./own-pkgs/user-agent-switcher {}; + dark-reader = pkgs.callPackage ./own-pkgs/dark-reader {}; + + wrapper = pkgs.callPackage ./overlays/firefox-with-config.nix { }; + myFirefox = wrapper pkgs.firefox-unwrapped { + + extraExtensions = [ + dark-reader + https-everywhere + ublock-origin + audio-fingerprint-defender + canvas-fingerprint-defender + webgl-fingerprint-defender + font-fingerprint-defender + user-agent-switcher + ]; + + extraPolicies = { + CaptivePortal = false; + }; + + disablePocket = true; + disableFirefoxSync = true; + allowNonSigned = true; + clearDataOnShutdown = true; + disableDrmPlugin = true; + +}; + +in { + + +environment.variables = { + BROWSER = ["firefox"]; +}; + + +environment.systemPackages = with pkgs; [ + myFirefox +]; + +} |