diff options
author | tv <tv@krebsco.de> | 2023-09-11 14:55:04 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-09-11 14:55:04 +0200 |
commit | 8fc162ee3d9525a2b45346a1ca8f34ccb5ef971b (patch) | |
tree | aa37724dd0452860d4b9b033332587c8832629e3 /lass/2configs/firefoxPatched.nix | |
parent | 90b1515dcd5b67a85cd92901fb211764b1fa5f83 (diff) | |
parent | 083229d0211096daec08673f743ccc45b1d8a0ac (diff) |
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'lass/2configs/firefoxPatched.nix')
-rw-r--r-- | lass/2configs/firefoxPatched.nix | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lass/2configs/firefoxPatched.nix b/lass/2configs/firefoxPatched.nix deleted file mode 100644 index daf8a28be..000000000 --- a/lass/2configs/firefoxPatched.nix +++ /dev/null @@ -1,58 +0,0 @@ -{ config, lib, pkgs, ... }: - -let - lpkgs = import ../5pkgs { inherit pkgs; }; - - inherit (lib) - concatMapStrings - ; - - plugins = with lpkgs.firefoxPlugins; [ - noscript - ublock - vimperator - ]; - - copyXpi = plugin: - "cp ${plugin}/*.xpi $out/usr/lib/firefox-*/browser/extensions/"; - - preferences = pkgs.writeText "autoload.js" '' - pref('general.config.filename', 'firefox.cfg'); - pref('general.config.obscure_value', 0); - ''; - - config = pkgs.writeText "firefox.cfg" '' - // - lockPref("app.update.enabled", false); - lockPref("extensions.update.enabled", false); - lockPref("autoadmin.global_config_url", ""); - lockPref("extensions.checkUpdateSecurity", false); - lockPref("services.sync.enabled", false); - lockPref("browser.shell.checkDefaultBrowser", false); - lockPref("layout.spellcheckDefault", 0); - lockPref("app.update.auto", false); - lockPref("browser.newtabpage.enabled", false); - lockPref("noscript.firstRunRedirection", false); - lockPref("noscript.hoverUI", false); - lockPref("noscript.notify", false); - defaultPref("extensions.newAddons", false); - defaultPref("extensions.autoDisableScopes", 0); - defaultPref("plugin.scan.plid.all", false); - ''; - -in { - environment.systemPackages = [ - (pkgs.lib.overrideDerivation pkgs.firefox-bin (original : { - installPhase = '' - ${original.installPhase} - find $out/usr/lib - ${concatMapStrings copyXpi plugins} - cd $out/usr/lib/firefox-*/ - mkdir -p browser/defaults/preferences - cp ${preferences} browser/defaults/preferences/autoload.js - cp ${config} ./firefox.cfg - ''; - })) - ]; -} - |