From b4486ff44addd453a64fd8c176ab2fd7ad3f6eb3 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 6 Jul 2025 10:40:29 -0500 Subject: [PATCH] mkFirefoxModule: add extension settings example to policies (#7397) Add an example of using extension settings to control installation and accesibility of a extension in the policies option. Signed-off-by: Austin Horstman --- modules/programs/firefox/mkFirefoxModule.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/programs/firefox/mkFirefoxModule.nix b/modules/programs/firefox/mkFirefoxModule.nix index 33c022890..eafaeca1a 100644 --- a/modules/programs/firefox/mkFirefoxModule.nix +++ b/modules/programs/firefox/mkFirefoxModule.nix @@ -333,6 +333,14 @@ in example = { DefaultDownloadDirectory = "\${home}/Downloads"; BlockAboutConfig = true; + ExtensionSettings = { + "uBlock0@raymondhill.net" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + installation_mode = "force_installed"; + default_area = "menupanel"; + private_browsing = true; + }; + }; }; });