nix-conf/home-manager/mail.nix
Thiago Sposito 0251529a8a
feat: add email integration with mu4e and protonmail-bridge
- Configure mu4e in Doom Emacs with Proton mail account
- Add protonmail-bridge service and mbsync/msmtp for mail sync
- Integrate sops-nix for secrets management (mail password)
- Create mail.nix with full IMAP/SMTP configuration
- Add ComfyUI user service module
- Add custom ASCII banner for Doom dashboard
- Enable nix module in Doom Emacs
- Add force-quit gnome extension
- Ignore secrets directory in git
- also add comfy-ui
2026-01-18 21:14:44 -03:00

58 lines
1.1 KiB
Nix

{
pkgs,
config,
sops,
secrets,
...
}:
{
sops.secrets = {
"mailpass" = {
sopsFile = secrets.outPath + "/mail.yaml";
key = "password";
};
};
accounts.email.accounts.proton = {
primary = true;
address = "th.spo@pm.me";
userName = "thiago@sposito.ch";
realName = "Thiago Sposito";
passwordCommand = "${pkgs.coreutils}/bin/cat ${config.sops.secrets.mailpass.path}";
imap = {
host = "127.0.0.1";
port = 1143;
tls.enable = true;
};
smtp = {
host = "127.0.0.1";
port = 1025;
tls.enable = true;
};
mbsync = {
enable = true;
create = "maildir";
expunge = "both";
extraConfig.account = {
SSLType = "STARTTLS";
TLSType = "STARTTLS";
CertificateFile = "~/.config/protonmail/bridge-v3/cert.pem";
AuthMechs = "LOGIN";
};
};
msmtp = {
enable = true;
extraConfig = {
tls_starttls = "on";
tls_certcheck = "off";
};
};
};
programs.mbsync.enable = true;
programs.msmtp.enable = true;
programs.mu.enable = true;
}