mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
firefox: reworked default configuration
This commit is contained in:
parent
190e09e9b4
commit
7b80afac0d
1 changed files with 37 additions and 25 deletions
|
|
@ -3,41 +3,21 @@
|
||||||
in {
|
in {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
# https://mozilla.github.io/policy-templates
|
# https://mozilla.github.io/policy-templates
|
||||||
|
# The following have more complex logic, keep them as policies and not profiles
|
||||||
policies = {
|
policies = {
|
||||||
SearchEngines = {
|
SearchEngines = {
|
||||||
Remove = ["Bing" "DuckDuckGo" "Qwant" "eBay"];
|
Remove = ["Bing" "DuckDuckGo" "Qwant" "eBay"];
|
||||||
};
|
};
|
||||||
HardwareAcceleration = true;
|
NoDefaultBookmarks = true;
|
||||||
DisableFirefoxScreenshots = false;
|
|
||||||
DisablePocket = true;
|
|
||||||
DisplayMenuBar = "never";
|
DisplayMenuBar = "never";
|
||||||
DisplayBookmarksToolbar = "never";
|
DisplayBookmarksToolbar = "never";
|
||||||
NoDefaultBookmarks = true;
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
OfferToSaveLoginsDefault = false;
|
|
||||||
PasswordManagerEnabled = false;
|
|
||||||
FirefoxHome = {
|
|
||||||
# https://searchfox.org/mozilla-central/source/browser/components/enterprisepolicies/Policies.sys.mjs
|
|
||||||
Search = true;
|
|
||||||
TopSites = true;
|
|
||||||
SponsoredTopSites = false;
|
|
||||||
Highlights = false;
|
|
||||||
Pocket = false;
|
|
||||||
SponsoredPocket = false;
|
|
||||||
|
|
||||||
# "Thought provoking stories"
|
|
||||||
Stories = false;
|
|
||||||
SponsoredStories = false;
|
|
||||||
};
|
|
||||||
UserMessaging = {
|
|
||||||
ExtensionRecommendations = false;
|
|
||||||
SkipOnboarding = true;
|
|
||||||
};
|
|
||||||
DNSOverHTTPS = {
|
DNSOverHTTPS = {
|
||||||
Enabled = true;
|
Enabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://searchfox.org/mozilla-central/source/browser/components/enterprisepolicies/Policies.sys.mjs
|
||||||
|
# Some policies can be rewritten to profiles configuration
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
settings = {
|
settings = {
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
|
@ -46,9 +26,41 @@ in {
|
||||||
"layout.css.devPixelsPerPx" = 1.1;
|
"layout.css.devPixelsPerPx" = 1.1;
|
||||||
"full-screen-api.ignore-widgets" = true; # limit fullscreen mode to window
|
"full-screen-api.ignore-widgets" = true; # limit fullscreen mode to window
|
||||||
|
|
||||||
# "Thought provoking stories"
|
# Sponsored crap
|
||||||
|
# Yes
|
||||||
|
"browser.newtabpage.activity-stream.showSearch" = true;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.topsites" = true;
|
||||||
|
# No
|
||||||
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.section.highlights" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.system.topstories" = false;
|
||||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
|
|
||||||
|
# URL
|
||||||
|
# Yes
|
||||||
|
"browser.urlbar.suggest.quicksuggest.nonsponsored" = true;
|
||||||
|
# No
|
||||||
|
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
|
||||||
|
|
||||||
|
# Pasword manager
|
||||||
|
"signon.rememberSignons" = false;
|
||||||
|
"services.passwordSavingEnabled" = false;
|
||||||
|
"pref.privacy.disable_button.view_passwords" = false;
|
||||||
|
|
||||||
|
# Hardware acceleration
|
||||||
|
"layers.acceleration.disabled" = false;
|
||||||
|
|
||||||
|
# Screenshot
|
||||||
|
"screenshots.browser.component.enabled" = true;
|
||||||
|
|
||||||
|
# Recommendations
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
|
||||||
|
"extensions.htmlaboutaddons.recommendations.enabled" = false; # Addons
|
||||||
|
|
||||||
|
# Onboarding
|
||||||
|
"browser.aboutwelcome.enabled" = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions.packages = let
|
extensions.packages = let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue