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
This commit is contained in:
parent
7f5ad94534
commit
0251529a8a
14 changed files with 220 additions and 22 deletions
58
home-manager/mail.nix
Normal file
58
home-manager/mail.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue