summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/firefox.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-11-12 19:18:31 +0100
committertv <tv@krebsco.de>2019-11-12 19:18:31 +0100
commiteaefd713c281e8802e4ff902b35a17b8b39f2b16 (patch)
treeed7521ae3c0c49dce87045c213618179042174ae /jeschli/2configs/firefox.nix
parent46cdc3ed4238965553d734b614b212fd96cba447 (diff)
parent4b5e3cbc6155ee807a9b6c474972df3e4fcd237b (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'jeschli/2configs/firefox.nix')
-rw-r--r--jeschli/2configs/firefox.nix53
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
+];
+
+}