You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.9 KiB
Nix
108 lines
2.9 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
programs.mbsync.enable = true;
|
|
programs.msmtp.enable = true;
|
|
programs.himalaya.enable = true;
|
|
programs.vdirsyncer.enable = true;
|
|
|
|
accounts.email = {
|
|
maildirBasePath = "Mail";
|
|
certificatesFile = "${builtins.getEnv "HOME"}/.nix-profile/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
accounts = {
|
|
FastMail = {
|
|
flavor = "fastmail.com";
|
|
address = "dustin@dustinswan.com";
|
|
aliases = [ "dustinswan@gmail.com" ];
|
|
realName = "Dustin Swan";
|
|
primary = true;
|
|
folders = {
|
|
inbox = "INBOX";
|
|
drafts = "Drafts";
|
|
sent = "Sent";
|
|
trash = "Trash";
|
|
};
|
|
userName = "dustinswan@fastmail.com";
|
|
gpg = {
|
|
signByDefault = true;
|
|
key = "AD11750151C10881970BD943AB49BD6B2B3A6377";
|
|
};
|
|
passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustinswan@fastmail.com-password.gpg";
|
|
mbsync = {
|
|
enable = true;
|
|
create = "maildir";
|
|
expunge = "maildir";
|
|
};
|
|
msmtp.enable = true;
|
|
himalaya = {
|
|
enable = true;
|
|
settings = {
|
|
# backend = "imap";
|
|
# maildir.root-dir = "/Users/dustinswan/Mail/FastMail";
|
|
# message.send.backend = "smtp";
|
|
# sent-folder = "Sent";
|
|
# draft-folder = "Drafts";
|
|
};
|
|
};
|
|
signature = {
|
|
text = ''Dustin Swan | dustinswan.com'';
|
|
showSignature = "append";
|
|
};
|
|
};
|
|
|
|
MajorRocket = {
|
|
flavor = "gmail.com";
|
|
address = "dustin@majorrocket.com";
|
|
realName = "Dustin Swan";
|
|
primary = false;
|
|
folders = {
|
|
inbox = "Inbox";
|
|
drafts = "[Gmail]/Drafts";
|
|
sent = "[Gmail]/Sent Mail";
|
|
trash = "[Gmail]/Trash";
|
|
};
|
|
userName = "dustin@majorrocket.com";
|
|
passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustin@majorrocket.com-password.gpg";
|
|
mbsync = {
|
|
enable = true;
|
|
create = "maildir";
|
|
expunge = "maildir";
|
|
};
|
|
msmtp.enable = true;
|
|
aerc.enable = true;
|
|
# himalaya = {
|
|
# enable = true;
|
|
# };
|
|
signature = {
|
|
text = ''Dustin Swan | Major Rocket'';
|
|
showSignature = "append";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
accounts.calendar = {
|
|
basePath = "Calendars";
|
|
accounts = {
|
|
FastMail = {
|
|
khal = {
|
|
enable = true;
|
|
# addresses = [ "dustin@dustinswan.com" ];
|
|
type = "discover";
|
|
};
|
|
primary = true;
|
|
remote = {
|
|
passwordCommand = ["~/dotfiles/bin/decrypt-password" "dustinswan@fastmail.com"];
|
|
type = "caldav";
|
|
url = "https://caldav.fastmail.com/dav/";
|
|
userName = "dustinswan@fastmail.com";
|
|
};
|
|
vdirsyncer = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|