This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

remove stale firefoxPatched

-57
-57
2configs/firefoxPatched.nix
··· 1 - { lib, pkgs, ... }: 2 - 3 - let 4 - lpkgs = import ../5pkgs { inherit pkgs; }; 5 - 6 - inherit (lib) 7 - concatMapStrings 8 - ; 9 - 10 - plugins = with lpkgs.firefoxPlugins; [ 11 - noscript 12 - ublock 13 - vimperator 14 - ]; 15 - 16 - copyXpi = plugin: "cp ${plugin}/*.xpi $out/usr/lib/firefox-*/browser/extensions/"; 17 - 18 - preferences = pkgs.writeText "autoload.js" '' 19 - pref('general.config.filename', 'firefox.cfg'); 20 - pref('general.config.obscure_value', 0); 21 - ''; 22 - 23 - config = pkgs.writeText "firefox.cfg" '' 24 - // 25 - lockPref("app.update.enabled", false); 26 - lockPref("extensions.update.enabled", false); 27 - lockPref("autoadmin.global_config_url", ""); 28 - lockPref("extensions.checkUpdateSecurity", false); 29 - lockPref("services.sync.enabled", false); 30 - lockPref("browser.shell.checkDefaultBrowser", false); 31 - lockPref("layout.spellcheckDefault", 0); 32 - lockPref("app.update.auto", false); 33 - lockPref("browser.newtabpage.enabled", false); 34 - lockPref("noscript.firstRunRedirection", false); 35 - lockPref("noscript.hoverUI", false); 36 - lockPref("noscript.notify", false); 37 - defaultPref("extensions.newAddons", false); 38 - defaultPref("extensions.autoDisableScopes", 0); 39 - defaultPref("plugin.scan.plid.all", false); 40 - ''; 41 - 42 - in 43 - { 44 - environment.systemPackages = [ 45 - (pkgs.lib.overrideDerivation pkgs.firefox-bin (original: { 46 - installPhase = '' 47 - ${original.installPhase} 48 - find $out/usr/lib 49 - ${concatMapStrings copyXpi plugins} 50 - cd $out/usr/lib/firefox-*/ 51 - mkdir -p browser/defaults/preferences 52 - cp ${preferences} browser/defaults/preferences/autoload.js 53 - cp ${config} ./firefox.cfg 54 - ''; 55 - })) 56 - ]; 57 - }