fix webgl firefox without breaking policies
This commit is contained in:
parent
e625ae6617
commit
0b8ecc3096
1 changed files with 13 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, nixgl, ... }:
|
||||
let
|
||||
lock-false = {
|
||||
Value = false;
|
||||
|
@ -8,11 +8,8 @@
|
|||
Value = true;
|
||||
Status = "locked";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox.override {
|
||||
nixGL = "${nixgl.packages.${pkgs.system}.nixGLIntel}/bin/nixGLIntel";
|
||||
my-firefox = (pkgs.firefox.override {
|
||||
extraPrefs = ''
|
||||
//
|
||||
|
||||
|
@ -25,18 +22,6 @@
|
|||
lockPref("privacy.donottrackheader.enabled", true);
|
||||
lockPref("privacy.donottrackheader.value", 1);
|
||||
|
||||
// Fingerprinting
|
||||
lockPref("privacy.fingerprintingProtection", true);
|
||||
pref(
|
||||
"privacy.fingerprintingProtection.overrides",
|
||||
"+AllTargets,-KeyboardEvents,-SpeechSynthesis,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-NavigatorUserAgent,-JSDateTimeUTC,-HttpUserAgent",
|
||||
);
|
||||
lockPref("privacy.fingerprintingProtection.pbmode", true);
|
||||
lockPref("privacy.resistFingerprinting", false);
|
||||
lockPref("privacy.resistFingerprinting.block_mozAddonManage", true);
|
||||
lockPref("privacy.resistFingerprinting.letterboxing", false);
|
||||
clearPref("privacy.resistFingerprinting.pbmode");
|
||||
|
||||
// New sidebar
|
||||
lockPref("sidebar.revamp", true);
|
||||
lockPref("sidebar.verticalTabs", true);
|
||||
|
@ -45,7 +30,16 @@
|
|||
|
||||
//
|
||||
'';
|
||||
};
|
||||
}).overrideAttrs (old: {
|
||||
buildCommand = old.buildCommand + ''
|
||||
sed -i "s#firefox-wrapped\"#firefox-wrapped\" \"${nixGL}\"#1" "$out/bin/firefox"
|
||||
'';
|
||||
});
|
||||
in
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = my-firefox;
|
||||
|
||||
policies = {
|
||||
EnableTrackingProtection = {
|
||||
|
|
Loading…
Reference in a new issue