From fe7c396545e8a8bef3cf6e80da0483f5d3ba22b8 Mon Sep 17 00:00:00 2001 From: kiana-S Date: Sat, 17 Feb 2024 13:24:21 -0500 Subject: [PATCH] Secondary email address --- home-manager/email.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/home-manager/email.nix b/home-manager/email.nix index 20e9ba6..462a423 100644 --- a/home-manager/email.nix +++ b/home-manager/email.nix @@ -1,5 +1,6 @@ { config, pkgs, fullname, email, ... }: let + ksumail = "bsheiban@students.kennesaw.edu"; maildir = "${config.xdg.dataHome}/mail"; pass = config.programs.password-store.package; in { @@ -17,7 +18,7 @@ in { address = email; userName = email; flavor = "gmail.com"; - passwordCommand = "${pass}/bin/pass Email/GmailApp/kiana.a.sheibani@gmail.com"; + passwordCommand = "${pass}/bin/pass Email/GmailApp/${email}"; primary = true; mbsync = { enable = true; @@ -29,13 +30,27 @@ in { msmtp.enable = true; mu.enable = true; }; + ksu = { + address = ksumail; + userName = ksumail; + flavor = "outlook.office365.com"; + passwordCommand = "${pass}/bin/pass Email/${ksumail}"; + mbsync = { + enable = true; + create = "both"; + expunge = "both"; + patterns = [ "*" ]; + }; + realName = fullname; + msmtp.enable = true; + mu.enable = true; + }; }; }; services = { mbsync = { enable = true; - preExec = "${pkgs.isync}/bin/mbsync -Ha"; postExec = "${pkgs.mu}/bin/mu index -m ${maildir}"; }; };