mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 07:56:12 +01:00
implement extraVirtualAliases
This commit is contained in:
parent
76f8c40df6
commit
8ce3d42c13
1 changed files with 9 additions and 2 deletions
|
@ -30,11 +30,18 @@ let
|
||||||
cfg.loginAccounts);
|
cfg.loginAccounts);
|
||||||
|
|
||||||
# extra_valiases_postfix :: [ String ]
|
# extra_valiases_postfix :: [ String ]
|
||||||
extra_valiases_postfix = map
|
# TODO: Remove virtualAliases when deprecated -> removed
|
||||||
|
extra_valiases_postfix = (map
|
||||||
(from:
|
(from:
|
||||||
let to = cfg.virtualAliases.${from};
|
let to = cfg.virtualAliases.${from};
|
||||||
in "${from} ${to}")
|
in "${from} ${to}")
|
||||||
(builtins.attrNames cfg.virtualAliases);
|
(builtins.attrNames cfg.virtualAliases))
|
||||||
|
++
|
||||||
|
(map
|
||||||
|
(from:
|
||||||
|
let to = cfg.extraVirtualAliases.${from};
|
||||||
|
in "${from} ${to}")
|
||||||
|
(builtins.attrNames cfg.extraVirtualAliases));
|
||||||
|
|
||||||
# all_valiases_postfix :: [ String ]
|
# all_valiases_postfix :: [ String ]
|
||||||
all_valiases_postfix = valiases_postfix ++ extra_valiases_postfix;
|
all_valiases_postfix = valiases_postfix ++ extra_valiases_postfix;
|
||||||
|
|
Loading…
Reference in a new issue