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