From c8517cab735af03bbcaf2297bc22ad0dccfac151 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 6 Mar 2024 10:08:40 -0500 Subject: [PATCH] wip: add himalaya --- home/default.nix | 1 + home/himalaya.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 home/himalaya.nix diff --git a/home/default.nix b/home/default.nix index 433b8eb..99d9b81 100644 --- a/home/default.nix +++ b/home/default.nix @@ -36,6 +36,7 @@ ./bash.nix # ./kitty.nix ./emacs.nix + ./himalaya.nix ]; }; }; diff --git a/home/himalaya.nix b/home/himalaya.nix new file mode 100644 index 0000000..9161c54 --- /dev/null +++ b/home/himalaya.nix @@ -0,0 +1,30 @@ +let + iCloudMailSettings = { + imap = { + host = "imap.mail.me.com"; + port = 993; + }; + smtp = { + host = "smtp.mail.me.com"; + port = 587; + tls.useStartTls = true; + }; + }; +in +{ + programs.himalaya = { + enable = true; + }; + + accounts.email.accounts = { + "srid@srid.ca" = iCloudMailSettings // { + primary = true; + realName = "Sridhar Ratnakumar"; + address = "happyandharmless@icloud.com"; + aliases = [ "srid@srid.ca" ]; + userName = "happyandharmless"; + passwordCommand = "op read op://Personal/iCloud/password"; + himalaya.enable = true; + }; + }; +}