From 8dabc942104f33972c542d165074ffc99e2768d1 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 2 Oct 2024 19:47:24 +0800 Subject: [PATCH] home/firefox: declarative extensions --- home/applications/firefox/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/home/applications/firefox/default.nix b/home/applications/firefox/default.nix index 798790e..ca24e34 100644 --- a/home/applications/firefox/default.nix +++ b/home/applications/firefox/default.nix @@ -12,6 +12,30 @@ '') ]; }; + + policies.ExtensionSettings = { + "redirector@einaregilsson.com" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/redirector/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"; + }; + "uBlock0@raymondhill.net" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + installation_mode = "force_installed"; + }; + "{446900e4-71c2-419f-a6a7-df9c091e268b}" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi"; + installation_mode = "force_installed"; + }; + "{d7742d87-e61d-4b78-b8a1-b469842139fa}" = { + install_url = "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi"; + installation_mode = "force_installed"; + }; + }; + profiles."default" = { }; }; }