move firerfox settings

This commit is contained in:
Sean Buckley 2023-07-27 13:35:44 -04:00
parent b86011a2ac
commit 05f301bb35
2 changed files with 27 additions and 24 deletions

View file

@ -7,6 +7,7 @@ with lib;
imports = [ imports = [
./chromium.nix ./chromium.nix
./firefox.nix
]; ];
config = mkIf (config.sconfig.desktop.enable) { config = mkIf (config.sconfig.desktop.enable) {
@ -71,30 +72,6 @@ with lib;
shardulm94.trailing-spaces shardulm94.trailing-spaces
]; ];
}) })
(wrapFirefox 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;
};
};
})
]; ];
environment.etc."my-settings.sh".text = '' environment.etc."my-settings.sh".text = ''

View file

@ -0,0 +1,26 @@
{ 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;
};
};
})
];
}