From 2912359f1a7788d44981826c3b77f60f7082d7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 14 May 2025 19:33:55 +0200 Subject: [PATCH] feat: add new mail address --- modules/moritz/profiles/personal_mail.nix | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/moritz/profiles/personal_mail.nix b/modules/moritz/profiles/personal_mail.nix index 37cc07d..a12686e 100644 --- a/modules/moritz/profiles/personal_mail.nix +++ b/modules/moritz/profiles/personal_mail.nix @@ -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"; + }; }; }