configuration.nix/home/programs/firefox/policies.nix

110 lines
4 KiB
Nix
Raw Normal View History

2024-06-29 13:49:36 +05:30
let
lock = Value: {
inherit Value;
Status = "locked";
};
install = install_url: {
inherit install_url;
installation_mode = "force_installed";
};
in
2024-06-12 19:25:47 +05:30
{
DisableAppUpdate = true;
DisableFirefoxAccounts = true;
DisableFirefoxStudies = true;
DisableFormHistory = true;
DisablePocket = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab";
DontCheckDefaultBrowser = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
EmailTracking = true;
Fingerprinting = true;
};
ExtensionSettings = {
2024-06-22 23:48:31 +05:30
"*" = {
installation_mode = "blocked";
blocked_install_message = "Add it to firefox/policies.nix to install it.";
};
2024-06-29 13:49:36 +05:30
"addon@darkreader.org" = install "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
"queryamoid@kaply.com" = install "https://github.com/mkaply/queryamoid/releases/download/v0.2/query_amo_addon_id-0.2-fx.xpi";
"uBlock0@raymondhill.net" = install "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
"{3c078156-979c-498b-8990-85f7987dd929}" = install "https://addons.mozilla.org/firefox/downloads/latest/sidebery/latest.xpi";
"{b743f56d-1cc1-4048-8ba6-f9c2ab7aa54d}" = install "https://addons.mozilla.org/firefox/downloads/latest/dracula-dark-colorscheme/latest.xpi";
"{d634138d-c276-4fc8-924b-40a0ea21d284}" = install "https://addons.mozilla.org/firefox/downloads/latest/1password-x-password-manager/latest.xpi";
2024-06-12 19:25:47 +05:30
};
FirefoxHome = {
Search = true;
TopSites = false;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
FirefoxSuggest = {
WebSuggestions = false;
SponsoredSuggestions = false;
ImproveSuggest = false;
Locked = true;
};
Homepage = {
2024-10-31 15:57:16 +05:30
URL = "https://homepage.labs.adtya.xyz";
StartPage = "homepage-locked";
2024-06-12 19:25:47 +05:30
Locked = true;
};
NetworkPrediction = false;
2024-10-31 15:57:16 +05:30
NewTabPage = false;
2024-06-12 19:25:47 +05:30
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
PasswordManagerEnabled = false;
PrimaryPassword = false;
SearchSuggestEnabled = false;
UserMessaging = {
WhatsNew = false;
ExtensionRecommendations = false;
FeatureRecommendations = false;
UrlbarInterventions = false;
SkipOnboarding = true;
MoreFromMozilla = false;
Locked = true;
};
Preferences = {
2024-06-29 13:49:36 +05:30
"accessibility.force_disabled" = lock 1;
"browser.aboutConfig.showWarning" = lock false;
"browser.aboutHomeSnippets.updateUrl" = lock "";
"browser.crashReports.unsubmittedCheck.autoSubmit2" = lock false;
"browser.selfsupport.url" = lock "";
"browser.startup.homepage_override.mstone" = lock "ignore";
"browser.startup.homepage_override.buildID" = lock "";
"browser.tabs.firefox-view" = lock false;
"browser.tabs.firefox-view-next" = lock false;
"browser.urlbar.suggest.history" = lock false;
"browser.urlbar.suggest.topsites" = lock false;
"dom.security.https_only_mode" = lock true;
"extensions.htmlaboutaddons.recommendations.enabled" = lock false;
"extensions.recommendations.themeRecommendationUrl" = lock "";
"gfx.canvas.accelerated.cache-items" = lock 4096;
"gfx.canvas.accelerated.cache-size" = lock 512;
"gfx.content.skia-font-cache-size" = lock 20;
"network.dns.disablePrefetch" = lock false;
"network.dns.disablePrefetchFromHTTPS" = lock false;
"network.http.max-connections" = lock 1800;
"network.http.max-persistent-connections-per-server" = lock 10;
"network.http.max-urgent-start-excessive-connections-per-host" = lock 5;
"network.http.pacing.requests.enabled" = lock false;
"network.IDN_show_punycode" = lock true;
"network.predictor.enabled" = lock false;
"network.prefetch-next" = lock false;
"network.trr.mode" = lock 5;
"signon.management.page.breach-alerts.enabled" = lock false;
2024-06-29 13:50:20 +05:30
"widget.disable-swipe-tracker" = lock true;
2024-06-12 19:25:47 +05:30
};
}