feat: add new mail address

This commit is contained in:
Moritz Böhme 2025-05-14 19:33:55 +02:00
parent 90170ba821
commit 2912359f1a
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9

View file

@ -43,6 +43,24 @@ in {
services.mbsync.enable = true;
services.imapnotify.enable = true;
programs.mbsync.enable = true;
accounts.email.accounts.personal2 = {
imapnotify.enable = true;
imapnotify.boxes = ["Inbox"];
imapnotify.onNotify = "${lib.getExe' pkgs.systemd "systemctl"} start --user mbsync.service";
address = "main@moritz.foo";
userName = "main@moritz.foo";
aerc.enable = true;
# gpg.signByDefault = true;
# gpg.key = "0xE4F362A3F5C338A0";
imap.host = "mail.moritz.foo";
smtp.host = "mail.moritz.foo";
realName = "Moritz Böhme";
mbsync.enable = true;
mbsync.create = "both";
mbsync.remove = "both";
mbsync.expunge = "both";
passwordCommand = "${lib.getExe' pkgs.coreutils "cat"} ${config.clan.core.vars.generators.moritz-email-new.files.password.path}";
};
accounts.email.accounts.personal = {
imapnotify.enable = true;
imapnotify.boxes = ["Inbox"];
@ -71,5 +89,12 @@ in {
share = true;
files.password.owner = lib.mkForce "moritz";
};
clan.core.vars.generators.moritz-email-new = {
prompts.password.description = "the email password";
prompts.password.type = "hidden";
prompts.password.persist = true;
share = true;
files.password.owner = lib.mkForce "moritz";
};
};
}