{ pkgs, ... }: let tbPkg = if pkgs.stdenv.isDarwin then pkgs.thunderbird-bin else pkgs.thunderbird; in { # Account definitions (email/calendar/contact) live in module.accounts.nix, # shared with evolution-data-server (module.evolution.nix). Only email # accounts opt in to Thunderbird; calendars and the address book are # consumed via GNOME/EDS instead, so Thunderbird is mail-only. programs.thunderbird = { enable = true; package = tbPkg; profiles.default = { isDefault = true; accountsOrder = [ "personal" ]; settings = { "mail.chat.enabled" = false; "calendar.itip.showImipBar" = false; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; # Hide the calendar/tasks/chat spaces so Thunderbird presents as an # email-only client. The address book space stays (local/collected # addresses + autocomplete still live there). userChrome = '' #calendarButton, #tasksButton, #chatButton { display: none !important; } ''; }; }; }