profiles/browser: add browser extensions for Firefox native extensions

This commit is contained in:
Gabriel Arazas 2023-09-16 16:31:17 +08:00
parent 3cc4998ab7
commit ce0e92906f
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -63,8 +63,11 @@ in
installation_mode = "force_installed"; installation_mode = "force_installed";
default_area = "navbar"; default_area = "navbar";
}; };
"ff2mpv@yossarian.net".install_url = mozillaAddon "ff2mpv";
"firefox-translations-addon@mozilla.org".install_url = mozillaAddon "firefox-translations"; "firefox-translations-addon@mozilla.org".install_url = mozillaAddon "firefox-translations";
"fx_cast@matt.tf".install_url = "https://github.com/hensm/fx_cast/releases/download/v0.3.1/fx_cast-0.3.1.xpi";
"jid1-MnnxcxisBPnSXQ@jetpack".install_url = mozillaAddon "privacy-badger17"; "jid1-MnnxcxisBPnSXQ@jetpack".install_url = mozillaAddon "privacy-badger17";
"tridactyl.vim@cmcaine.co.uk".install_url = mozillaAddon "tridactyl-vim";
"uBlock0@raymondhill.net".install_url = mozillaAddon "ublock-origin"; "uBlock0@raymondhill.net".install_url = mozillaAddon "ublock-origin";
"wayback_machine@mozilla.org" = { "wayback_machine@mozilla.org" = {
install_url = mozillaAddon "wayback-machine_new"; install_url = mozillaAddon "wayback-machine_new";
@ -74,9 +77,9 @@ in
applyInstallationMode = name: value: applyInstallationMode = name: value:
lib.nameValuePair name (value // lib.nameValuePair name (value //
(lib.optionalAttrs (value.installation_mode != "") { (lib.optionalAttrs
installation_mode = "normal_installed"; (! (lib.hasAttrByPath [ "installation_mode" ] value))
})); { installation_mode = "normal_installed"; }));
in in
lib.mapAttrs' applyInstallationMode extensions; lib.mapAttrs' applyInstallationMode extensions;