121 lines
4.9 KiB
Nix
121 lines
4.9 KiB
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
lock-false = {
|
|
Value = false;
|
|
Status = "locked";
|
|
};
|
|
lock-true = {
|
|
Value = true;
|
|
Status = "locked";
|
|
};
|
|
in
|
|
{
|
|
environment.variables = rec {
|
|
MOZ_GMP_PATH = "${pkgs.widevine-firefox}/gmp-widevinecdm/system-installed";
|
|
};
|
|
|
|
programs.firefox = {
|
|
enable = true;
|
|
preferences = {
|
|
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
|
"widget.gtk.global-menu.enabled" = true;
|
|
"widget.gtk.global-menu.wayland.enabled" = true;
|
|
"browser.tabs.inTitlebar" = 0;
|
|
"extensions.pocket.enabled" = false;
|
|
"extensions.screenshots.disabled" = true;
|
|
"browser.topsites.contile.enabled" = false;
|
|
"browser.formfill.enable" = false;
|
|
"browser.search.suggest.enabled" = false;
|
|
"browser.search.suggest.enabled.private" = false;
|
|
"browser.urlbar.suggest.searches" = false;
|
|
"browser.urlbar.showSearchSuggestionsFirst" = false;
|
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
|
"browser.newtabpage.activity-stream.feeds.snippets" = false;
|
|
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
|
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
|
|
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
|
|
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
|
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
"browser.newtabpage.activity-stream.system.showSponsored" = false;
|
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
|
|
"media.gmp-widevinecdm.version" = "system-installed";
|
|
"media.gmp-widevinecdm.visible" = true;
|
|
"media.gmp-widevinecdm.enabled" = true;
|
|
"media.gmp-widevinecdm.autoupdate" = false;
|
|
|
|
"media.eme.enabled" = true;
|
|
"media.eme.encrypted-media-encryption-scheme.enabled" = true;
|
|
};
|
|
policies = {
|
|
DisableTelemetry = true;
|
|
DisableFirefoxStudies = true;
|
|
EnableTrackingProtection = {
|
|
Value = true;
|
|
Locked = true;
|
|
Cryptomining = true;
|
|
Fingerprinting = true;
|
|
};
|
|
DisablePocket = true;
|
|
DisableFirefoxAccounts = true;
|
|
DisableAccounts = true;
|
|
DisableFirefoxScreenshots = true;
|
|
OverrideFirstRunPage = "";
|
|
OverridePostUpdatePage = "";
|
|
DontCheckDefaultBrowser = true;
|
|
DisplayBookmarksToolbar = "newtab"; # alternatives: "always" or "newtab"
|
|
DisplayMenuBar = "always"; # alternatives: "always", "never" or "default-on"
|
|
SearchBar = "unified"; # alternative: "separate"
|
|
|
|
# ---- EXTENSIONS ----
|
|
# Check about:support for extension/add-on ID strings.
|
|
# Valid strings for installation_mode are "allowed", "blocked",
|
|
# "force_installed" and "normal_installed".
|
|
ExtensionSettings = {
|
|
# blocks all addons except the ones specified below
|
|
"*".installation_mode = "blocked";
|
|
"uBlock0@raymondhill.net" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"plasma-browser-integration@kde.org" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/plasma-integration/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/styl-us/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/violentmonkey/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"gdpr@cavi.au.dk" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/consent-o-matic/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"dont-track-me-google@robwu.nl" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/dont-track-me-google1/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"jid1-MnnxcxisBPnSXQ@jetpack" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"FirefoxColor@mozilla.com" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/firefox-color/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
"sponsorBlocker@ajay.app" = {
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi";
|
|
installation_mode = "force_installed";
|
|
};
|
|
# "" = {
|
|
# install_url = "https://addons.mozilla.org/firefox/downloads/latest/_/latest.xpi";
|
|
# installation_mode = "force_installed";
|
|
# };
|
|
};
|
|
};
|
|
};
|
|
}
|