1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-21 17:59:39 +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

@ -37,8 +37,9 @@ let
in {
name = catAttrs "realName" primary;
primary_email = catAttrs "address" primary;
other_email = catAttrs "aliases" primary ++ catAttrs "address" secondaries
++ catAttrs "aliases" secondaries;
other_email = map (email: email.address or email) (flatten
(catAttrs "aliases" primary ++ catAttrs "address" secondaries
++ catAttrs "aliases" secondaries));
};
search = { exclude_tags = cfg.search.excludeTags; };