Secondary email address

This commit is contained in:
Kiana Sheibani 2024-02-17 13:24:21 -05:00
parent 10df46bae5
commit fe7c396545

View file

@ -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}";
};
};