nixcfg/nixosModules/apps/firefox/default.nix

112 lines
3 KiB
Nix
Raw Normal View History

2024-06-24 14:01:07 -04:00
{
config,
lib,
pkgs,
...
}: {
config = lib.mkIf config.ar.apps.firefox.enable {
2024-06-24 14:01:07 -04:00
programs.firefox = {
enable = true;
policies = {
Cookies.Behavior = "reject-foreign";
DisableAppUpdate = true;
DisableFirefoxStudies = true;
DisableMasterPasswordCreation = true;
DisablePocket = true;
DisableProfileImport = true;
DisableSetDesktopBackground = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab";
DNSOverHTTPS = {
Enabled = true;
Fallback = true;
};
DontCheckDefaultBrowser = true;
EnableTrackingProtection = {
Cryptomining = true;
Fingerprinting = true;
EmailTracking = true;
Locked = false;
Value = true;
};
EncryptedMediaExtensions = {
Enabled = true;
Locked = false;
};
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "normal_installed";
};
"jid1-BoFifL9Vbdl2zQ@jetpack" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/decentraleyes/latest.xpi";
installation_mode = "normal_installed";
};
};
FirefoxHome = {
Highlights = false;
Locked = false;
Pocket = false;
Search = true;
Snippets = false;
SponsoredPocket = false;
SponsoredTopSites = false;
TopSites = false;
};
FirefoxSuggest = {
ImproveSuggest = false;
Locked = false;
SponsoredSuggestions = false;
WebSuggestions = false;
};
HardwareAcceleration = true;
Homepage = {
Locked = false;
StartPage = "previous-session";
};
NewTabPage = false;
NoDefaultBookmarks = false; # Enabling this prevents declaratively setting bookmarks.
2024-06-24 14:01:07 -04:00
OfferToSaveLoginsDefault = false;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
PDFjs = {
Enabled = true;
EnablePermissions = false;
};
Preferences = {
"browser.aboutConfig.showWarning" = false;
"browser.bookmarks.addedImportButton" = false;
"datareporting.healthreport.uploadEnabled" = false;
"datareporting.policy.dataSubmissionPolicyAccepted" = true;
"dom.security.https_only_mode" = true;
"extensions.autoDisableScopes" = 0;
2024-06-30 19:32:18 -04:00
"media.ffmpeg.vaapi.enabled" = true;
"media.navigator.mediadatadecoder_vpx_enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
2024-06-24 14:01:07 -04:00
};
UserMessaging = {
ExtensionRecommendations = false;
FeatureRecommendations = false;
MoreFromMozilla = false;
SkipOnboarding = true;
};
UseSystemPrintDialog = true;
};
};
};
}