35 lines
590 B
Nix
35 lines
590 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
osConfig,
|
|
...
|
|
}:
|
|
|
|
{
|
|
programs = {
|
|
thunderbird =
|
|
if osConfig.apps.internet.mail.enable then
|
|
{
|
|
enable = true;
|
|
profiles."default" = {
|
|
isDefault = true;
|
|
};
|
|
}
|
|
else
|
|
{ };
|
|
};
|
|
services = {
|
|
protonmail-bridge =
|
|
if osConfig.apps.internet.mail.providers.protonmail.enable then
|
|
{
|
|
enable = true;
|
|
package = pkgs.protonmail-bridge;
|
|
extraPackages = with pkgs; [
|
|
gnome-keyring
|
|
];
|
|
}
|
|
else
|
|
{ };
|
|
};
|
|
}
|