From 9676ed2f3c564603d081bbbd8ebd70b4ae5ff15b Mon Sep 17 00:00:00 2001 From: lightly-toasted Date: Sat, 9 Aug 2025 14:30:11 +0900 Subject: [PATCH] feat(firefox): add policies --- home/toast/programs/firefox.nix | 39 ++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/home/toast/programs/firefox.nix b/home/toast/programs/firefox.nix index e3b556b..3cf518c 100644 --- a/home/toast/programs/firefox.nix +++ b/home/toast/programs/firefox.nix @@ -1,3 +1,40 @@ { - programs.firefox.enable = true; + programs.firefox = { + enable = true; + policies = { + DisableTelemetry = true; + DisableFirefoxStudies = true; + DisablePocket = true; + DisableFirefoxAccounts = true; + OfferToSaveLogins = false; + PasswordManagerEnabled = false; + ExtensionSettings = { + # Bitwarden + "{446900e4-71c2-419f-a6a7-df9c091e268b}" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi"; + installation_mode = "normal_installed"; + }; + # Vimium C + "vimium-c@gdh1995.cn" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/vimium-c/latest.xpi"; + installation_mode = "normal_installed"; + }; + # uBlock Origin + "uBlock0@raymondhill.net" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + installation_mode = "normal_installed"; + }; + # RoGold + "{048bba8c-c62d-4967-963d-d663cae75d3f}" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/rogold/latest.xpi"; + installation_mode = "normal_installed"; + }; + # RoSeal + "{f4f4223a-ff30-4961-b9c0-6a71b7a32aaf}" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/roseal/latest.xpi"; + installation_mode = "normal_installed"; + }; + }; + }; + }; }