implement extraVirtualAliases

This commit is contained in:
Robin Raymond 2017-11-21 11:52:16 +01:00
parent 76f8c40df6
commit 8ce3d42c13

View File

@ -30,11 +30,18 @@ let
cfg.loginAccounts);
# extra_valiases_postfix :: [ String ]
extra_valiases_postfix = map
# TODO: Remove virtualAliases when deprecated -> removed
extra_valiases_postfix = (map
(from:
let to = cfg.virtualAliases.${from};
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 = valiases_postfix ++ extra_valiases_postfix;