nix/module/desktop/firefox/Config.nix

43 lines
1.8 KiB
Nix
Raw Normal View History

2024-05-19 16:50:33 +03:00
{ util, style, ... }: {
2024-05-02 18:14:13 +03:00
text = util.trimTabs ''
2024-04-06 03:03:58 +03:00
// Bookmarks.
lockPref("browser.microsummary.enabled", true);
lockPref("browser.places.importBookmarksHTML", true);
lockPref("browser.toolbars.bookmarks.visibility", "never");
// Fonts.
pref("browser.display.use_document_fonts", 0);
2024-06-22 23:34:03 +03:00
lockPref("font.minimum-size.x-cyrillic", ${toString style.font.size.application});
lockPref("font.minimum-size.x-unicode", ${toString style.font.size.application});
lockPref("font.minimum-size.x-western", ${toString style.font.size.application});
2024-05-19 16:50:33 +03:00
lockPref("font.name.monospace.x-cyrillic", "${style.font.monospace.name}");
lockPref("font.name.monospace.x-unicode", "${style.font.monospace.name}");
lockPref("font.name.monospace.x-western", "${style.font.monospace.name}");
lockPref("font.name.sans-serif.x-cyrillic", "${style.font.sansSerif.name}");
lockPref("font.name.sans-serif.x-unicode", "${style.font.sansSerif.name}");
lockPref("font.name.sans-serif.x-western", "${style.font.sansSerif.name}");
lockPref("font.name.serif.x-cyrillic", "${style.font.serif.name}");
lockPref("font.name.serif.x-unicode", "${style.font.serif.name}");
lockPref("font.name.serif.x-western", "${style.font.serif.name}");
2024-04-06 03:03:58 +03:00
// Animations.
lockPref("browser.fullscreen.animateUp", 0);
lockPref("browser.fullscreen.autohide", true);
// Homepage.
lockPref("browser.newtabpage.enabled", false);
lockPref("browser.startup.homepage", "https://home.voronind.com/");
lockPref("browser.startup.page", 3);
// Passwords.
lockPref("signon.prefillForms", false);
lockPref("signon.rememberSignons", false);
// Formats.
lockPref("image.jxl.enabled", true);
2024-05-20 14:31:14 +03:00
// User agent.
// pref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36");
2024-04-06 03:03:58 +03:00
'';
}