aboutsummaryrefslogtreecommitdiff
path: root/nixos/profiles
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-01-06 16:44:55 +0100
committerMartin Fischer <martin@push-f.com>2026-01-06 16:47:27 +0100
commit8faef8c3c14bd99a3335dd78d253bebe83b48027 (patch)
tree70da6ca07fb8c1a3b4b5cf4d7c56238a345fdb63 /nixos/profiles
parentaf7e8066e51cc120eb06b0c322224231ddf7ca4c (diff)
tweak(firefox): set zoomValues based on devPixelsPerPx
Diffstat (limited to 'nixos/profiles')
-rw-r--r--nixos/profiles/workstation/firefox.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/profiles/workstation/firefox.nix b/nixos/profiles/workstation/firefox.nix
index a2b8f49..ce77960 100644
--- a/nixos/profiles/workstation/firefox.nix
+++ b/nixos/profiles/workstation/firefox.nix
@@ -5,9 +5,16 @@
enable = true;
package =
let
+ devPixelsPerPx = 1.2;
prefs = {
# about:config preferences
# We're setting them via extraPrefs because policies.Preferences doesn't support all about:config preferences.
+
+ # Make everything a bit bigger (with this the default Firefox font size matches my terminal font size of 14pt).
+ "layout.css.devPixelsPerPx" = toString devPixelsPerPx;
+ # With Ctrl+- I want to get get devicePixelRatio=1.
+ "toolkit.zoomManager.zoomValues" = ".3,.5,.67,${toString (1 / devPixelsPerPx)},1,1.1,1.2,1.33,1.5,1.7,2,2.4,3,4,5";
+
"browser.aboutConfig.showWarning" = false;
"browser.ml.chat.menu" = false;
"browser.tabs.insertAfterCurrent" = true;
@@ -15,7 +22,6 @@
"browser.uidensity" = 1;
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; # can be changed via UI despite this about:config setting being locked
"identity.fxaccounts.enabled" = false;
- "layout.css.devPixelsPerPx" = "1.2"; # with this the default Firefox font size matches my terminal font size of 14pt
"sidebar.revamp" = false; # with the revamped sidebar Ctrl+B opens but not closes the sidebar which is annoying
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};