This commit is contained in:
Chris Kruining 2024-08-02 20:55:42 +02:00
parent 77959d9fc9
commit c4b5474327
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ options, config, lib, pkgs, ... }:
let
inherit (lib.modules) mkIf mkForce mkMerge;
inherit (lib.attrsets) attrValues;
cfg = config.modules.desktop.applications.email;
in
{
options.modules.desktop.applications.email = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "Enable email client (thunderbird)";
};
config = mkIf cfg.enable
{
user.packages = attrValues {
inherit (pkgs) thunderbird;
};
accounts.email.account = {
kruining = {
primary = true;
address = "chris@kruinin.eu";
thunderbird.enable = true;
realName = "Chris Kruining";
};
cgames = {
primary = false;
address = "chris@cgames.nl";
thunderbird.enable = true;
realName = "Chris P Bacon";
};
};
};
}