mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move firerfox settings
This commit is contained in:
parent
b86011a2ac
commit
05f301bb35
2 changed files with 27 additions and 24 deletions
|
@ -7,6 +7,7 @@ with lib;
|
|||
|
||||
imports = [
|
||||
./chromium.nix
|
||||
./firefox.nix
|
||||
];
|
||||
|
||||
config = mkIf (config.sconfig.desktop.enable) {
|
||||
|
@ -71,30 +72,6 @@ with lib;
|
|||
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 = ''
|
||||
|
|
26
modules/desktop/firefox.nix
Normal file
26
modules/desktop/firefox.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue