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, ... }: { config, pkgs, fullname, email, ... }:
let let
ksumail = "bsheiban@students.kennesaw.edu";
maildir = "${config.xdg.dataHome}/mail"; maildir = "${config.xdg.dataHome}/mail";
pass = config.programs.password-store.package; pass = config.programs.password-store.package;
in { in {
@ -17,7 +18,7 @@ in {
address = email; address = email;
userName = email; userName = email;
flavor = "gmail.com"; flavor = "gmail.com";
passwordCommand = "${pass}/bin/pass Email/GmailApp/kiana.a.sheibani@gmail.com"; passwordCommand = "${pass}/bin/pass Email/GmailApp/${email}";
primary = true; primary = true;
mbsync = { mbsync = {
enable = true; enable = true;
@ -29,13 +30,27 @@ in {
msmtp.enable = true; msmtp.enable = true;
mu.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 = { services = {
mbsync = { mbsync = {
enable = true; enable = true;
preExec = "${pkgs.isync}/bin/mbsync -Ha";
postExec = "${pkgs.mu}/bin/mu index -m ${maildir}"; postExec = "${pkgs.mu}/bin/mu index -m ${maildir}";
}; };
}; };