alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
remove stale firefoxPatched
author
lassulus
date
2 years ago
(Apr 6, 2025, 11:20 AM -0700)
commit
b144f9f1
b144f9f1d6063390d7dd9a980dee9946af0e4a24
parent
f217f581
f217f581280e078d27dc37d58f5bbe68e4c4f39f
-57
1 changed file
Expand all
Collapse all
Unified
Split
2configs
firefoxPatched.nix
-57
2configs/firefoxPatched.nix
Reviewed
···
1
1
-
{ lib, pkgs, ... }:
2
2
-
3
3
-
let
4
4
-
lpkgs = import ../5pkgs { inherit pkgs; };
5
5
-
6
6
-
inherit (lib)
7
7
-
concatMapStrings
8
8
-
;
9
9
-
10
10
-
plugins = with lpkgs.firefoxPlugins; [
11
11
-
noscript
12
12
-
ublock
13
13
-
vimperator
14
14
-
];
15
15
-
16
16
-
copyXpi = plugin: "cp ${plugin}/*.xpi $out/usr/lib/firefox-*/browser/extensions/";
17
17
-
18
18
-
preferences = pkgs.writeText "autoload.js" ''
19
19
-
pref('general.config.filename', 'firefox.cfg');
20
20
-
pref('general.config.obscure_value', 0);
21
21
-
'';
22
22
-
23
23
-
config = pkgs.writeText "firefox.cfg" ''
24
24
-
//
25
25
-
lockPref("app.update.enabled", false);
26
26
-
lockPref("extensions.update.enabled", false);
27
27
-
lockPref("autoadmin.global_config_url", "");
28
28
-
lockPref("extensions.checkUpdateSecurity", false);
29
29
-
lockPref("services.sync.enabled", false);
30
30
-
lockPref("browser.shell.checkDefaultBrowser", false);
31
31
-
lockPref("layout.spellcheckDefault", 0);
32
32
-
lockPref("app.update.auto", false);
33
33
-
lockPref("browser.newtabpage.enabled", false);
34
34
-
lockPref("noscript.firstRunRedirection", false);
35
35
-
lockPref("noscript.hoverUI", false);
36
36
-
lockPref("noscript.notify", false);
37
37
-
defaultPref("extensions.newAddons", false);
38
38
-
defaultPref("extensions.autoDisableScopes", 0);
39
39
-
defaultPref("plugin.scan.plid.all", false);
40
40
-
'';
41
41
-
42
42
-
in
43
43
-
{
44
44
-
environment.systemPackages = [
45
45
-
(pkgs.lib.overrideDerivation pkgs.firefox-bin (original: {
46
46
-
installPhase = ''
47
47
-
${original.installPhase}
48
48
-
find $out/usr/lib
49
49
-
${concatMapStrings copyXpi plugins}
50
50
-
cd $out/usr/lib/firefox-*/
51
51
-
mkdir -p browser/defaults/preferences
52
52
-
cp ${preferences} browser/defaults/preferences/autoload.js
53
53
-
cp ${config} ./firefox.cfg
54
54
-
'';
55
55
-
}))
56
56
-
];
57
57
-
}