1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-29 21:51:01 +01:00

accounts/email: provide realName option for alias (#6106)

This commit is contained in:
eum3l 2025-02-22 07:03:07 +00:00 committed by GitHub
parent f0f0d1ade2
commit c31b4e330e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 14 deletions

View file

@ -16,7 +16,8 @@ let
filter (a: a.mu.enable) (attrValues config.accounts.email.accounts);
addrs = map (a: a.address) muAccounts;
# Construct list of lists containing email aliases, and flatten
aliases = flatten (map (a: a.aliases) muAccounts);
aliases = map (alias: alias.address or alias)
(flatten (map (a: a.aliases) muAccounts));
# Sort the list
in sort lessThan (addrs ++ aliases);