Files
dotfiles/home/accounts/fastmail.nix
uttarayan21 c9456966bf
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
feat(email): enable mbsync and configure neomutt with sidebar and notmuch support
2025-12-09 18:22:16 +05:30

43 lines
1.0 KiB
Nix

{config, ...}: {
sops = {
secrets."accounts/mail/fastmail" = {};
};
accounts.email = {
maildirBasePath = "Mail";
accounts = {
fastmail = rec {
maildir = {
path = "fastmail";
};
primary = true;
address = "email@uttarayan.me";
userName = address;
realName = "Uttarayan Mondal";
imap = {
host = "imap.fastmail.com";
port = 993;
tls.enable = true;
# authentication = "login";
};
smtp = {
host = "smtp.fastmail.com";
port = 465;
tls.enable = true;
};
imapnotify = {
enable = true;
};
passwordCommand = ["cat" "${config.sops.secrets."accounts/mail/fastmail".path}"];
mbsync = {
enable = true;
create = "both";
};
};
};
};
programs.mbsync.enable = true;
services.mbsync.enable = true;
# accounts.email.accounts.<name>.mbsync.create
# services.mbsync.enable = true;
}