2023-07-27 17:35:44 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
|
|
|
extraPolicies = {
|
|
|
|
NewTabPage = false;
|
|
|
|
CaptivePortal = false;
|
|
|
|
DisablePocket = true;
|
2023-07-28 04:53:17 +00:00
|
|
|
DisableFirefoxAccounts = true;
|
2023-07-27 17:35:44 +00:00
|
|
|
DisableFirefoxStudies = true;
|
|
|
|
OfferToSaveLogins = false;
|
|
|
|
DisableFormHistory = true;
|
|
|
|
SearchSuggestEnabled = false;
|
|
|
|
Preferences = builtins.mapAttrs
|
|
|
|
(n: v: { Value = v; Status = "locked"; })
|
|
|
|
{
|
2023-08-03 22:13:01 +00:00
|
|
|
"accessibility.force_disabled" = 1;
|
2023-07-27 20:46:19 +00:00
|
|
|
"browser.aboutConfig.showWarning" = false;
|
2023-07-27 18:03:38 +00:00
|
|
|
"browser.chrome.toolbar_tips" = false; # https://bugzilla.mozilla.org/show_bug.cgi?id=148624
|
2023-07-27 17:35:44 +00:00
|
|
|
"browser.contentblocking.category" = "strict";
|
2023-08-03 22:13:01 +00:00
|
|
|
"browser.tabs.firefox-view" = false;
|
|
|
|
"browser.uitour.enabled" = false;
|
2023-07-27 17:35:44 +00:00
|
|
|
"browser.zoom.siteSpecific" = false;
|
|
|
|
"extensions.formautofill.addresses.enabled" = false;
|
|
|
|
"extensions.formautofill.creditCards.enabled" = false;
|
2023-08-03 22:13:01 +00:00
|
|
|
"extensions.formautofill.heuristics.enabled" = false;
|
2023-07-27 17:35:44 +00:00
|
|
|
"network.IDN_show_punycode" = true;
|
2023-08-07 14:08:52 +00:00
|
|
|
"places.history.expiration.max_pages" = 2048;
|
2023-07-27 17:35:44 +00:00
|
|
|
"ui.key.menuAccessKeyFocuses" = false;
|
|
|
|
};
|
2023-07-28 04:30:00 +00:00
|
|
|
ExtensionSettings =
|
|
|
|
{ "*".installation_mode = "blocked"; } //
|
|
|
|
builtins.mapAttrs
|
|
|
|
(n: v: {
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/${v}/latest.xpi";
|
|
|
|
})
|
|
|
|
{
|
|
|
|
"jid1-KKzOGWgsW3Ao4Q@jetpack" = "i-dont-care-about-cookies";
|
|
|
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = "bitwarden-password-manager";
|
|
|
|
};
|
2023-07-27 17:35:44 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|