{ lib, ... }: let extensions = { dictionary-german.id = "de-DE@dictionaries.addons.mozilla.org"; "dictionnaire-français1".id = "fr-dicollecte@dictionaries.addons.mozilla.org"; }; in { programs.thunderbird.policies.ExtensionSettings = { "*".installation_mode = "blocked"; } // lib.mapAttrs' (name: { id, ... }: { name = id; value = { install_url = "https://addons.thunderbird.net/thunderbird/downloads/latest/${name}/latest.xpi"; installation_mode = "force_installed"; updates_disabled = true; }; }) extensions; }