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-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";
|
|
|
|
"browser.zoom.siteSpecific" = false;
|
|
|
|
"extensions.formautofill.addresses.enabled" = false;
|
|
|
|
"extensions.formautofill.creditCards.enabled" = false;
|
|
|
|
"network.IDN_show_punycode" = true;
|
|
|
|
"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
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|