From 7b6af916429d816ae2a8d1d4bd7c7f1bc8a158d5 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 12 Oct 2021 17:54:54 +0200 Subject: [PATCH] home: mail: accounts: use 'mkMailAccount' --- home/mail/accounts/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/mail/accounts/default.nix b/home/mail/accounts/default.nix index 2eecb6d..80d95ae 100644 --- a/home/mail/accounts/default.nix +++ b/home/mail/accounts/default.nix @@ -2,16 +2,16 @@ let cfg = config.my.home.mail; - mkAddress = address: domain: "${address}@${domain}"; + inherit (lib.my) mkMailAddress; mkConfig = { domain, address, passName, aliases ? [ ], primary ? false }: { realName = lib.mkDefault "Bruno BELANYI"; - userName = lib.mkDefault (mkAddress address domain); + userName = lib.mkDefault (mkMailAddress address domain); passwordCommand = lib.mkDefault [ "${pkgs.ambroisie.bw-pass}/bin/bw-pass" "Mail" passName ]; - address = mkAddress address domain; - aliases = builtins.map (lib.flip mkAddress domain) aliases; + address = mkMailAddress address domain; + aliases = builtins.map (lib.flip mkMailAddress domain) aliases; inherit primary;