feat: add new mail address
This commit is contained in:
parent
90170ba821
commit
2912359f1a
1 changed files with 25 additions and 0 deletions
|
|
@ -43,6 +43,24 @@ in {
|
||||||
services.mbsync.enable = true;
|
services.mbsync.enable = true;
|
||||||
services.imapnotify.enable = true;
|
services.imapnotify.enable = true;
|
||||||
programs.mbsync.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 = {
|
accounts.email.accounts.personal = {
|
||||||
imapnotify.enable = true;
|
imapnotify.enable = true;
|
||||||
imapnotify.boxes = ["Inbox"];
|
imapnotify.boxes = ["Inbox"];
|
||||||
|
|
@ -71,5 +89,12 @@ in {
|
||||||
share = true;
|
share = true;
|
||||||
files.password.owner = lib.mkForce "moritz";
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue