This commit is contained in:
Grimmauld 2025-02-24 01:37:25 +01:00
parent 8cfd81c825
commit 0955d2d1c3
No known key found for this signature in database
2 changed files with 2 additions and 11 deletions

View file

@ -59,7 +59,6 @@ in
); );
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
DisableScreenshots = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value = true; Value = true;
Locked = true; Locked = true;

View file

@ -1,25 +1,17 @@
{ prev, final, ... }: { prev, final, ... }:
{ {
# firefox-unwrapped = (prev.firefox-unwrapped.overrideAttrs (old: {
# patches = (old.patches or []) ++ [ ../patches/firefox_search_engines.patch ];
# })).override {
# stdenv = prev.ccacheStdenv;
# overrideCC = stdenv: compiler: let
# env = prev.ccacheStdenv.override { inherit stdenv; };
# in prev.overrideCC env compiler;
# };
firefox = prev.firefox.overrideAttrs (old: { firefox = prev.firefox.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ (with prev; [ zip unzip gnused ] ); nativeBuildInputs = (old.nativeBuildInputs or []) ++ (with prev; [ zip unzip gnused ] );
buildCommand = '' buildCommand = ''
export buildRoot="$(pwd)" export buildRoot="$(pwd)"
'' + old.buildCommand + '' '' + old.buildCommand + ''
cd $buildRoot pushd $buildRoot
unzip $out/lib/firefox/browser/omni.ja -d patched_omni || true unzip $out/lib/firefox/browser/omni.ja -d patched_omni || true
rm $out/lib/firefox/browser/omni.ja rm $out/lib/firefox/browser/omni.ja
cd patched_omni cd patched_omni
sed -i 's/"enterprise_only"\s*:\s*true,//' modules/policies/schema.sys.mjs sed -i 's/"enterprise_only"\s*:\s*true,//' modules/policies/schema.sys.mjs
zip -0DXqr $out/lib/firefox/browser/omni.ja * # potentially qr9XD zip -0DXqr $out/lib/firefox/browser/omni.ja * # potentially qr9XD
cd $out popd
''; '';
}); });
} }