nixos-config/modules/desktop/firefox.nix
2023-07-27 13:36:51 -04:00

26 lines
848 B
Nix

{ config, lib, pkgs, ... }:
{
environment.systemPackages = [
(pkgs.wrapFirefox pkgs.firefox-unwrapped {
extraPolicies = {
NewTabPage = false;
CaptivePortal = false;
DisablePocket = true;
DisableFirefoxStudies = true;
OfferToSaveLogins = false;
DisableFormHistory = true;
SearchSuggestEnabled = false;
Preferences = builtins.mapAttrs
(n: v: { Value = v; Status = "locked"; })
{
"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;
};
};
})
];
}