Skip to content

Commit

Permalink
Add work gmail
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 6, 2024
1 parent 390acba commit 56d1b9c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
20 changes: 18 additions & 2 deletions modules/home/all/email/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
let
# https://pimalaya.org/himalaya/cli/latest/configuration/icloud-mail.html
iCloudMailSettings = {
imap = {
host = "imap.mail.me.com";
Expand All @@ -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 = [
Expand All @@ -24,7 +34,13 @@ in
address = "[email protected]";
aliases = [ "[email protected]" ];
userName = "happyandharmless";
passwordCommand = "op read op://Personal/iCloud-Apple/himalaya";
passwordCommand = "op read op://Personal/iCloud-Apple/home-manager";
};
"[email protected]" = GmailSettings // {
realName = "Sridhar Ratnakumar";
address = "[email protected]";
userName = "[email protected]";
passwordCommand = "op read op://Personal/Google-Juspay/home-manager";
};
};
}
9 changes: 5 additions & 4 deletions modules/home/all/email/thunderbird.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
};

accounts.email.accounts = {
"[email protected]" = {
thunderbird = {
enable = true;
};
"[email protected]".thunderbird = {
enable = true;
};
"[email protected]".thunderbird = {
enable = true;
};
};
}

0 comments on commit 56d1b9c

Please sign in to comment.