35 lines
615 B
Nix
35 lines
615 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
apps.internet = {
|
|
mail.enable = lib.mkEnableOption "enable e-mail";
|
|
mail.providers.protonmail.enable = lib.mkEnableOption "enable protonmail";
|
|
};
|
|
};
|
|
config = {
|
|
programs = {
|
|
thunderbird =
|
|
if config.apps.internet.mail.enable then
|
|
{
|
|
enable = true;
|
|
}
|
|
else
|
|
{ };
|
|
};
|
|
services = {
|
|
protonmail-bridge =
|
|
if config.apps.internet.mail.providers.protonmail.enable then
|
|
{
|
|
enable = true;
|
|
}
|
|
else
|
|
{ };
|
|
};
|
|
};
|
|
}
|