From c0962eeeabfb8127713f859ec8a5f0e86dead0f2 Mon Sep 17 00:00:00 2001 From: MithicSpirit Date: Fri, 2 May 2025 23:32:45 -0400 Subject: [PATCH] thunderbird: fix accounts being removed (#6959) Even if no accounts were configured, it was defaulting to just account1, which meant all other accounts were deleted every time thunderbird was restarted. This fixes that by defaulting to the empty list (so it remains unset in the user.js). --- modules/programs/thunderbird.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/thunderbird.nix b/modules/programs/thunderbird.nix index 333ca39b..1109fe5a 100644 --- a/modules/programs/thunderbird.nix +++ b/modules/programs/thunderbird.nix @@ -704,7 +704,9 @@ in "account1" ]; in - accountsOrderIds ++ (lib.lists.subtractLists accountsOrderIds enabledAccountsIds); + lib.optionals (accounts != [ ]) ( + accountsOrderIds ++ (lib.lists.subtractLists accountsOrderIds enabledAccountsIds) + ); in { text = mkUserJs (builtins.foldl' (a: b: a // b) { } (