From 34f7930082f803b7c88ca3b044e1d23b3ca87a2a Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 20 Oct 2024 14:56:19 +0800 Subject: [PATCH] home/firefox: defaultPref -> lockPref --- home/applications/firefox/default.nix | 10 ++++++---- home/applications/firefox/user-overrides.js | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/home/applications/firefox/default.nix b/home/applications/firefox/default.nix index ca24e34..e30b333 100644 --- a/home/applications/firefox/default.nix +++ b/home/applications/firefox/default.nix @@ -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' '') ]; }; diff --git a/home/applications/firefox/user-overrides.js b/home/applications/firefox/user-overrides.js index 1ae7ca5..1e4e077 100644 --- a/home/applications/firefox/user-overrides.js +++ b/home/applications/firefox/user-overrides.js @@ -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);