feat(users/rafiq): add email configuration

This commit is contained in:
Mohammad Rafiq 2025-06-05 18:37:12 +08:00
parent f1324f15ed
commit 8dd23844f1
No known key found for this signature in database
3 changed files with 50 additions and 3 deletions

View file

@ -1,5 +1,48 @@
{ pkgs, inputs, ... }:
{
pkgs,
inputs,
osConfig,
...
}:
{
accounts = {
email = {
maildirBasePath = "mail";
accounts = {
"rafiq@rrv.sh" = {
primary = true;
address = "rafiq@rrv.sh";
maildir.path = "rafiq@rrv.sh";
userName = "rafiq@rrv.sh";
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;
};
};
"mohammadrafiq@rrv.sh" = {
address = "mohammadrafiq@rrv.sh";
maildir.path = "mohammadrafiq@rrv.sh";
userName = "mohammadrafiq@rrv.sh";
realName = "Mohammad Rafiq";
passwordCommand = "sudo cat ${osConfig.sops.secrets."rafiq/workEmailPassword".path}";
imap = {
host = "imap.forwardemail.net";
port = 993;
};
smtp = {
host = "smtp.forwardemail.net";
port = 465;
};
};
};
};
};
cli = {
shell = "zsh";
finder = "fzf";