From 44bc834c301026e8a75420bbbf93eccbd4189e9f Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 28 Jul 2023 00:30:00 -0400 Subject: [PATCH] manage extensions by policy --- modules/desktop/firefox.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/desktop/firefox.nix b/modules/desktop/firefox.nix index c28ae90..b17cae5 100644 --- a/modules/desktop/firefox.nix +++ b/modules/desktop/firefox.nix @@ -22,6 +22,17 @@ "network.IDN_show_punycode" = true; "ui.key.menuAccessKeyFocuses" = false; }; + ExtensionSettings = + { "*".installation_mode = "blocked"; } // + builtins.mapAttrs + (n: v: { + installation_mode = "force_installed"; + install_url = "https://addons.mozilla.org/firefox/downloads/latest/${v}/latest.xpi"; + }) + { + "jid1-KKzOGWgsW3Ao4Q@jetpack" = "i-dont-care-about-cookies"; + "{446900e4-71c2-419f-a6a7-df9c091e268b}" = "bitwarden-password-manager"; + }; }; }) ];