From 05b538cb466980f4bdd74a9470de4f81a514d226 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sun, 6 Oct 2024 14:30:38 -0400 Subject: [PATCH] Add thunderbird Thunderbird must be installed manually on darwin. See https://github.com/nix-community/home-manager/issues/3407 --- modules/darwin/all/thunderbird.nix | 7 +++++++ modules/darwin/default.nix | 1 + modules/home/all/email/default.nix | 1 + modules/home/all/email/thunderbird.nix | 22 ++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 modules/darwin/all/thunderbird.nix create mode 100644 modules/home/all/email/thunderbird.nix diff --git a/modules/darwin/all/thunderbird.nix b/modules/darwin/all/thunderbird.nix new file mode 100644 index 0000000..e0cff96 --- /dev/null +++ b/modules/darwin/all/thunderbird.nix @@ -0,0 +1,7 @@ +{ + # https://github.com/nix-community/home-manager/issues/3407#issuecomment-1312712582 + launchd.user.envVariables = { + MOZ_LEGACY_PROFILES = "1"; # thunderbird + MOZ_ALLOW_DOWNGRADE = "1"; # thunderbird + }; +} diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix index eaccea1..d0603cf 100644 --- a/modules/darwin/default.nix +++ b/modules/darwin/default.nix @@ -16,5 +16,6 @@ in self.nixosModules.common inputs.ragenix.darwinModules.default ./all/zsh-completion-fix.nix + ./all/thunderbird.nix ]; } diff --git a/modules/home/all/email/default.nix b/modules/home/all/email/default.nix index d8f810a..8521d92 100644 --- a/modules/home/all/email/default.nix +++ b/modules/home/all/email/default.nix @@ -15,6 +15,7 @@ in { imports = [ ./himalaya.nix + ./thunderbird.nix ]; accounts.email.accounts = { "srid@srid.ca" = iCloudMailSettings // { diff --git a/modules/home/all/email/thunderbird.nix b/modules/home/all/email/thunderbird.nix new file mode 100644 index 0000000..4ddc27d --- /dev/null +++ b/modules/home/all/email/thunderbird.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: +{ + programs.thunderbird = { + enable = true; + + # Thunderbird package is unavailable for Darwin. + # Install the app manually. + package = pkgs.hello; + + profiles."default" = { + isDefault = true; + }; + }; + + accounts.email.accounts = { + "srid@srid.ca" = { + thunderbird = { + enable = true; + }; + }; + }; +}