{ lib, config, pkgs, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.mail.enable = mkOption { type = types.bool; default = false; description = "enables neomut isync and msmtp"; }; config = mkIf config.smayzy.mail.enable { environment.systemPackages = with pkgs; [ neomutt isync msmtp pass ]; programs.gnupg.agent.enable = true; }; }