1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

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).
This commit is contained in:
MithicSpirit 2025-05-02 23:32:45 -04:00 committed by GitHub
parent 123297c57e
commit c0962eeeab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) { } (