feat(homes/rafiq): add thunderbird
This commit is contained in:
parent
8dd23844f1
commit
c51bf01f77
1 changed files with 28 additions and 30 deletions
|
@ -4,6 +4,24 @@
|
||||||
osConfig,
|
osConfig,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
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 = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
accounts = {
|
accounts = {
|
||||||
email = {
|
email = {
|
||||||
|
@ -11,35 +29,8 @@
|
||||||
accounts = {
|
accounts = {
|
||||||
"rafiq@rrv.sh" = {
|
"rafiq@rrv.sh" = {
|
||||||
primary = true;
|
primary = true;
|
||||||
address = "rafiq@rrv.sh";
|
} // mkEmailAccount "rafiq@rrv.sh";
|
||||||
maildir.path = "rafiq@rrv.sh";
|
"mohammadrafiq@rrv.sh" = mkEmailAccount "mohammadrafiq@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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue