summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/programs/thunderbird/extensions.nix
blob: 152aea44eda8a98cb7b3664d3aa706e612653948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  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;
}