mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
skip firefox on servers
This commit is contained in:
parent
0b40dcad4e
commit
09a6c9431a
1 changed files with 41 additions and 39 deletions
|
@ -1,44 +1,46 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = [
|
config = lib.mkIf (config.sconfig.desktop.enable) {
|
||||||
(pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
environment.systemPackages = [
|
||||||
extraPolicies = {
|
(pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||||
NewTabPage = false;
|
extraPolicies = {
|
||||||
CaptivePortal = false;
|
NewTabPage = false;
|
||||||
DisablePocket = true;
|
CaptivePortal = false;
|
||||||
DisableFirefoxAccounts = true;
|
DisablePocket = true;
|
||||||
DisableFirefoxStudies = true;
|
DisableFirefoxAccounts = true;
|
||||||
OfferToSaveLogins = false;
|
DisableFirefoxStudies = true;
|
||||||
DisableFormHistory = true;
|
OfferToSaveLogins = false;
|
||||||
SearchSuggestEnabled = false;
|
DisableFormHistory = true;
|
||||||
Preferences = builtins.mapAttrs
|
SearchSuggestEnabled = false;
|
||||||
(n: v: { Value = v; Status = "locked"; })
|
Preferences = builtins.mapAttrs
|
||||||
{
|
(n: v: { Value = v; Status = "locked"; })
|
||||||
"accessibility.force_disabled" = 1;
|
|
||||||
"browser.aboutConfig.showWarning" = false;
|
|
||||||
"browser.contentblocking.category" = "strict";
|
|
||||||
"browser.tabs.firefox-view" = false;
|
|
||||||
"browser.uitour.enabled" = false;
|
|
||||||
"browser.zoom.siteSpecific" = false;
|
|
||||||
"extensions.formautofill.addresses.enabled" = false;
|
|
||||||
"extensions.formautofill.creditCards.enabled" = false;
|
|
||||||
"extensions.formautofill.heuristics.enabled" = false;
|
|
||||||
"network.IDN_show_punycode" = true;
|
|
||||||
"places.history.expiration.max_pages" = 2048;
|
|
||||||
"ui.key.menuAccessKeyFocuses" = false;
|
|
||||||
};
|
|
||||||
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";
|
"accessibility.force_disabled" = 1;
|
||||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = "bitwarden-password-manager";
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
"browser.contentblocking.category" = "strict";
|
||||||
|
"browser.tabs.firefox-view" = false;
|
||||||
|
"browser.uitour.enabled" = false;
|
||||||
|
"browser.zoom.siteSpecific" = false;
|
||||||
|
"extensions.formautofill.addresses.enabled" = false;
|
||||||
|
"extensions.formautofill.creditCards.enabled" = false;
|
||||||
|
"extensions.formautofill.heuristics.enabled" = false;
|
||||||
|
"network.IDN_show_punycode" = true;
|
||||||
|
"places.history.expiration.max_pages" = 2048;
|
||||||
|
"ui.key.menuAccessKeyFocuses" = false;
|
||||||
};
|
};
|
||||||
};
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue