Added Thunderbird.
This commit is contained in:
parent
5f0e109107
commit
fdceabcf75
3 changed files with 38 additions and 0 deletions
|
@ -7,6 +7,7 @@ with config;
|
|||
|
||||
myHome = {
|
||||
programs.firefox.enable = true;
|
||||
programs.thunderbird.enable = true;
|
||||
shell = {
|
||||
wezterm.enable = true;
|
||||
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./browsers
|
||||
./de
|
||||
./thunderbird
|
||||
];
|
||||
}
|
||||
|
|
36
nixos/home/modules/programs/thunderbird/default.nix
Normal file
36
nixos/home/modules/programs/thunderbird/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.myHome.programs.thunderbird;
|
||||
|
||||
policies = {
|
||||
ExtensionSettings = {
|
||||
"*".installation_mode = "blocked"; # blocks all addons except the ones specified below
|
||||
"quickmove@mozilla.kewis.ch" = {
|
||||
# Quick folder move
|
||||
# https://addons.thunderbird.net/en-US/thunderbird/addon/quick-folder-move/
|
||||
install_url = "https://addons.thunderbird.net/thunderbird/downloads/latest/quick-folder-move/latest.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
"tbsync@jobisoft.de" = {
|
||||
# TbSync
|
||||
# https://addons.thunderbird.net/en-US/thunderbird/addon/tbsync/
|
||||
install_url = "https://addons.thunderbird.net/user-media/addons/_attachments/773590/tbsync-4.8-tb.xpi";
|
||||
installation_mode = "force_installed";
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options.myHome.programs.thunderbird.enable = lib.mkEnableOption "Thunderbird";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.thunderbird = {
|
||||
enable = true;
|
||||
package = pkgs.thunderbird-128.override (old: {
|
||||
extraPolicies = (old.extrapPolicies or { }) // policies;
|
||||
});
|
||||
|
||||
profiles.default.isDefault = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue