From 5cdb4e421a809de51c3ebe8404e50d732721238b Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 26 Sep 2021 21:26:36 +0530 Subject: init --- mail.nix | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 mail.nix (limited to 'mail.nix') diff --git a/mail.nix b/mail.nix new file mode 100644 index 0000000..b62e51a --- /dev/null +++ b/mail.nix @@ -0,0 +1,49 @@ +{ config +, lib +, pkgs +, ... +}: + +{ + accounts.email.maildirBasePath = "mail"; + accounts.email.accounts."nerdy@peppe.rs" = { + address = "nerdy@peppe.rs"; + folders = { + drafts = "drafts"; + sent = "sent"; + trash = "trash"; + inbox = "inbox"; + }; + imap = { + host = "mail.postale.io"; + port = 993; + }; + maildir = { + path = "personal"; + }; + mbsync = { + enable = true; + create = "maildir"; + expunge = "maildir"; + }; + primary = true; + passwordCommand = "${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d /home/np/.password-store/email/personal.gpg"; + realName = "Akshay"; + signature = { + text = '' + -- + Akshay + + ''; + }; + smtp = { + host = "mail.postale.io"; + port = 587; + tls.useStartTls = true; + }; + userName = "nerdy@peppe.rs"; + notmuch.enable = true; + msmtp.enable = true; + + }; +} -- cgit v1.2.3