|
|
@ -7,12 +7,11 @@ in
|
|
|
|
home.packages = with pkgs; [ vdirsyncer khard khal imapnotify ];
|
|
|
|
home.packages = with pkgs; [ vdirsyncer khard khal imapnotify ];
|
|
|
|
|
|
|
|
|
|
|
|
programs.mbsync.enable = true;
|
|
|
|
programs.mbsync.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
programs.msmtp.enable = true;
|
|
|
|
programs.msmtp.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
programs.himalaya.enable = true;
|
|
|
|
programs.himalaya.enable = true;
|
|
|
|
|
|
|
|
programs.notmuch.enable = true;
|
|
|
|
programs.mu.enable = true;
|
|
|
|
programs.aerc.enable = true;
|
|
|
|
|
|
|
|
programs.aerc.extraConfig.general.unsafe-accounts-conf = true;
|
|
|
|
|
|
|
|
|
|
|
|
accounts.email = {
|
|
|
|
accounts.email = {
|
|
|
|
maildirBasePath = "Mail";
|
|
|
|
maildirBasePath = "Mail";
|
|
|
@ -20,21 +19,22 @@ in
|
|
|
|
|
|
|
|
|
|
|
|
accounts = {
|
|
|
|
accounts = {
|
|
|
|
FastMail = {
|
|
|
|
FastMail = {
|
|
|
|
|
|
|
|
flavor = "fastmail.com";
|
|
|
|
address = "dustin@dustinswan.com";
|
|
|
|
address = "dustin@dustinswan.com";
|
|
|
|
aliases = [ "dustinswan@gmail.com" ];
|
|
|
|
aliases = [ "dustinswan@gmail.com" ];
|
|
|
|
realName = "Dustin Swan";
|
|
|
|
realName = "Dustin Swan";
|
|
|
|
primary = true;
|
|
|
|
primary = true;
|
|
|
|
folders = {
|
|
|
|
folders = {
|
|
|
|
inbox = "INBOX";
|
|
|
|
inbox = "INBOX";
|
|
|
|
drafts = "INBOX.Drafts";
|
|
|
|
drafts = "Drafts";
|
|
|
|
sent = "INBOX.Sent";
|
|
|
|
sent = "Sent";
|
|
|
|
trash = "INBOX.Trash";
|
|
|
|
trash = "Trash";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
userName = "dustinswan@fastmail.com";
|
|
|
|
userName = "dustinswan@fastmail.com";
|
|
|
|
imap.host = "mail.messagingengine.com";
|
|
|
|
gpg = {
|
|
|
|
imap.port = 993;
|
|
|
|
signByDefault = true;
|
|
|
|
smtp.host = "mail.messagingengine.com";
|
|
|
|
key = "AD11750151C10881970BD943AB49BD6B2B3A6377";
|
|
|
|
smtp.port = 465;
|
|
|
|
};
|
|
|
|
passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustinswan@fastmail.com-password.gpg";
|
|
|
|
passwordCommand = "gpg -dq ${builtins.getEnv "HOME"}/.dustinswan@fastmail.com-password.gpg";
|
|
|
|
mbsync = {
|
|
|
|
mbsync = {
|
|
|
|
enable = true;
|
|
|
|
enable = true;
|
|
|
@ -47,26 +47,59 @@ in
|
|
|
|
# onNotify = "\${pkgs.isync}/bin/mbsync -a";
|
|
|
|
# onNotify = "\${pkgs.isync}/bin/mbsync -a";
|
|
|
|
# onNotifyPost = { mail = "\${pkgs.noti}/bin/noti 'New mail'"; };
|
|
|
|
# onNotifyPost = { mail = "\${pkgs.noti}/bin/noti 'New mail'"; };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
mu.enable = true;
|
|
|
|
notmuch.enable = true;
|
|
|
|
msmtp.enable = true;
|
|
|
|
msmtp.enable = true;
|
|
|
|
himalaya = {
|
|
|
|
aerc.enable = true;
|
|
|
|
enable = true;
|
|
|
|
# himalaya = {
|
|
|
|
settings = {
|
|
|
|
# enable = true;
|
|
|
|
|
|
|
|
# settings = {
|
|
|
|
# backend = "maildir";
|
|
|
|
# backend = "maildir";
|
|
|
|
# maildir.root-dir = "";
|
|
|
|
# maildir.root-dir = "";
|
|
|
|
# message.send.backend = "smtp";
|
|
|
|
# message.send.backend = "smtp";
|
|
|
|
# sent-folder = "INBOX.Sent";
|
|
|
|
# sent-folder = "Sent";
|
|
|
|
# draft-folder = "INBOX.Drafts";
|
|
|
|
# draft-folder = "Drafts";
|
|
|
|
};
|
|
|
|
# };
|
|
|
|
};
|
|
|
|
# };
|
|
|
|
signature = {
|
|
|
|
signature = {
|
|
|
|
text = ''Dustin Swan | dustinswan.com'';
|
|
|
|
text = ''Dustin Swan | dustinswan.com'';
|
|
|
|
showSignature = "append";
|
|
|
|
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;
|
|
|
|
|
|
|
|
notmuch.enable = true;
|
|
|
|
|
|
|
|
aerc.enable = true;
|
|
|
|
|
|
|
|
# himalaya = {
|
|
|
|
|
|
|
|
# enable = true;
|
|
|
|
|
|
|
|
# };
|
|
|
|
|
|
|
|
signature = {
|
|
|
|
|
|
|
|
text = ''Dustin Swan | Major Rocket'';
|
|
|
|
|
|
|
|
showSignature = "append";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: home-manager now supports all this, don't need to do custom config files
|
|
|
|
|
|
|
|
|
|
|
|
home.file.vdirsyncer = {
|
|
|
|
home.file.vdirsyncer = {
|
|
|
|
target = ".config/vdirsyncer/config";
|
|
|
|
target = ".config/vdirsyncer/config";
|
|
|
|
text = ''[general]
|
|
|
|
text = ''[general]
|
|
|
|