Add work gmail

This commit is contained in:
Sridhar Ratnakumar 2024-10-06 15:04:21 -04:00
parent 390acba816
commit 56d1b9ca9e
No known key found for this signature in database
2 changed files with 23 additions and 6 deletions

View file

@ -1,5 +1,4 @@
let
# https://pimalaya.org/himalaya/cli/latest/configuration/icloud-mail.html
iCloudMailSettings = {
imap = {
host = "imap.mail.me.com";
@ -11,6 +10,17 @@ let
tls.useStartTls = true;
};
};
GmailSettings = {
imap = {
host = "imap.gmail.com";
port = 993;
};
smtp = {
host = "smtp.gmail.com";
port = 465;
# tls.useStartTls = true;
};
};
in
{
imports = [
@ -24,7 +34,13 @@ in
address = "happyandharmless@icloud.com";
aliases = [ "srid@srid.ca" ];
userName = "happyandharmless";
passwordCommand = "op read op://Personal/iCloud-Apple/himalaya";
passwordCommand = "op read op://Personal/iCloud-Apple/home-manager";
};
"sridhar.ratnakumar@juspay.in" = GmailSettings // {
realName = "Sridhar Ratnakumar";
address = "sridhar.ratnakumar@juspay.in";
userName = "sridhar.ratnakumar@juspay.in";
passwordCommand = "op read op://Personal/Google-Juspay/home-manager";
};
};
}

View file

@ -13,10 +13,11 @@
};
accounts.email.accounts = {
"srid@srid.ca" = {
thunderbird = {
enable = true;
};
"srid@srid.ca".thunderbird = {
enable = true;
};
"sridhar.ratnakumar@juspay.in".thunderbird = {
enable = true;
};
};
}