feat(accounts): add Fastmail configuration with Himalaya support
All checks were successful
Flake checker / Build Nix targets (push) Successful in 9m29s
All checks were successful
Flake checker / Build Nix targets (push) Successful in 9m29s
This commit is contained in:
39
home/accounts/fastmail.nix
Normal file
39
home/accounts/fastmail.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{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;
|
||||
}
|
||||
Reference in New Issue
Block a user