{ config, lib, pkgs, ... }: let cfg = config.hm.soft.email; in { options.hm.soft.email = { thunderbird.enable = lib.mkEnableOption "thunderbird config"; evolution.enable = lib.mkEnableOption "evolution config"; }; config = lib.mkMerge [ (lib.mkIf cfg.thunderbird.enable { programs.thunderbird.enable = true; }) (lib.mkIf cfg.evolution.enable { home.packages = [ pkgs.evolution ]; }) ]; }