Files
nixos/modules/web/firefox.nix
2026-09-30 01:54:38 +02:00

47 lines
1.7 KiB
Nix

{ lib, pkgs, ... }:
{
programs.firefox = {
enable = true;
preferences = {
"browser.resistFingerPrinting" = true;
"browser.ipProtection.hasSeenFeature" = true;
"browser.newtab.extensionController" = true;
"browser.startup.homepage" = "moz-extension://cb0256df-d9d4-4624-94a2-b3e2ddc4a3e0/index.html";
"browser.bookmarks.visibility" = "never";
"browser.translations.popup" = false;
"privacy.bounceTrackingProtection.mode" = "1";
"privacy.donottrackheader.enabled" = true;
"privacy.fingerprintingProtection" = true;
"privacy.fingerprintingProtection.overrides" = "+AllTargets,-JSDateTimeUTC";
"privacy.trackingprotection.enabled" = true;
"reader.color_scheme" = "dark";
};
policies = {
DisableTelemetry = true;
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
};
"vimium@vimium.org" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/vimium/latest.xpi";
};
"addon@darkreader.org" = { # FIXME: does not work
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
};
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
};
};
};
};
}