feat(homes/rafiq): add thunderbird

This commit is contained in:
Mohammad Rafiq 2025-06-05 19:14:39 +08:00
parent 8dd23844f1
commit c51bf01f77
No known key found for this signature in database

View file

@ -4,16 +4,11 @@
osConfig,
...
}:
{
accounts = {
email = {
maildirBasePath = "mail";
accounts = {
"rafiq@rrv.sh" = {
primary = true;
address = "rafiq@rrv.sh";
maildir.path = "rafiq@rrv.sh";
userName = "rafiq@rrv.sh";
let
mkEmailAccount = address: {
inherit address;
maildir.path = address;
userName = address;
realName = "Mohammad Rafiq";
passwordCommand = "sudo cat ${osConfig.sops.secrets."rafiq/personalEmailPassword".path}";
imap = {
@ -24,22 +19,18 @@
host = "smtp.forwardemail.net";
port = 465;
};
thunderbird.enable = true;
};
"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;
};
};
in
{
accounts = {
email = {
maildirBasePath = "mail";
accounts = {
"rafiq@rrv.sh" = {
primary = true;
} // mkEmailAccount "rafiq@rrv.sh";
"mohammadrafiq@rrv.sh" = mkEmailAccount "mohammadrafiq@rrv.sh";
};
};
};
@ -73,7 +64,10 @@
inputs.nixspect.packages."x86_64-linux".nixspect
];
persistence."/persist/home/rafiq".directories = [ "repos" ];
persistence."/persist/home/rafiq".directories = [
"docs"
"repos"
];
};
programs = {
nh.enable = true;
@ -86,5 +80,9 @@
enable = true;
nix-direnv.enable = true;
};
thunderbird.enable = true;
thunderbird.profiles.rafiq = {
isDefault = true;
};
};
}