Skip to content

Commit

Permalink
Add thunderbird
Browse files Browse the repository at this point in the history
Thunderbird must be installed manually on darwin. See nix-community/home-manager#3407
  • Loading branch information
srid committed Oct 6, 2024
1 parent 6388b11 commit 05b538c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/darwin/all/thunderbird.nix
Original file line number Diff line number Diff line change
@@ -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
};
}
1 change: 1 addition & 0 deletions modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ in
self.nixosModules.common
inputs.ragenix.darwinModules.default
./all/zsh-completion-fix.nix
./all/thunderbird.nix
];
}
1 change: 1 addition & 0 deletions modules/home/all/email/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ in
{
imports = [
./himalaya.nix
./thunderbird.nix
];
accounts.email.accounts = {
"[email protected]" = iCloudMailSettings // {
Expand Down
22 changes: 22 additions & 0 deletions modules/home/all/email/thunderbird.nix
Original file line number Diff line number Diff line change
@@ -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 = {
"[email protected]" = {
thunderbird = {
enable = true;
};
};
};
}

0 comments on commit 05b538c

Please sign in to comment.