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:
parent
f0f0d1ade2
commit
c31b4e330e
4 changed files with 39 additions and 14 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue