Files
dotfiles/home/accounts/fastmail.nix
uttarayan21 efe34e0d0d
Some checks failed
Flake checker / Build Nix targets (push) Failing after 4m48s
chore: update flake.lock to latest versions across dependencies
2025-10-04 12:23:47 +05:30

40 lines
919 B
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";
};
};
};
};
# services.mbsync.enable = true;
}