home/firefox: defaultPref -> lockPref

This commit is contained in:
Guanran Wang 2024-10-20 14:56:19 +08:00
parent 52c3fa4772
commit 34f7930082
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
2 changed files with 7 additions and 4 deletions

View file

@ -4,11 +4,13 @@
enable = true;
package = pkgs.firefox.override {
extraPrefsFiles = [
"${pkgs.arkenfox-userjs}/user.cfg"
(pkgs.runCommandLocal "userjs" { } ''
install -Dm644 ${./user-overrides.js} $out
substituteInPlace $out \
--replace-fail "user_pref" "defaultPref"
substitute ${pkgs.arkenfox-userjs}/user.js $out \
--replace-fail 'user_pref' 'lockPref'
'')
(pkgs.runCommandLocal "userjs" { } ''
substitute ${./user-overrides.js} $out \
--replace-fail 'user_pref' 'lockPref'
'')
];
};

View file

@ -22,6 +22,7 @@ user_pref("signon.rememberSignons", false);
// Neat features, nice to have
user_pref("browser.compactmode.show", true);
user_pref("browser.search.separatePrivateDefault", false);
user_pref("browser.tabs.hoverPreview.enabled", true);
user_pref("browser.tabs.inTitlebar", 0);
user_pref("browser.urlbar.suggest.calculator", true);