feat(home): add email module for personal email setup

This commit is contained in:
Mohammad Rafiq 2025-06-28 09:30:37 +08:00
parent 326e3e3c61
commit 8d306915d9
No known key found for this signature in database
2 changed files with 46 additions and 27 deletions

View file

@ -7,22 +7,6 @@
let
inherit (lib) singleton optional;
inherit (inputs) import-tree;
mkEmailAccount = address: {
inherit address;
maildir.path = address;
userName = address;
realName = "Mohammad Rafiq";
passwordCommand = "sudo cat ${osConfig.sops.secrets."rafiq/personalEmailPassword".path}";
imap = {
host = "imap.forwardemail.net";
port = 993;
};
smtp = {
host = "smtp.forwardemail.net";
port = 465;
};
thunderbird.enable = osConfig.desktop.enable;
};
in
{
imports =
@ -31,16 +15,5 @@ in
config = {
stylix.image = ./desktop/wallpaper.png;
accounts = {
email = {
maildirBasePath = "mail";
accounts = {
"rafiq@rrv.sh" = {
primary = true;
} // mkEmailAccount "rafiq@rrv.sh";
"mohammadrafiq@rrv.sh" = mkEmailAccount "mohammadrafiq@rrv.sh";
};
};
};
};
}