A similar abstraction is being created into home-manager to generate MUA/MTA/MRA configurations from a central place. For now astroid/alot/offlineimap/mbsync/msmtp are supported. Neomutt support incoming https://github.com/rycee/home-manager/pull/300
While I use notmuch-emacs instead of Neomutt and mbsync instead of OfflineIMAP I prize this idea simply because we need "easy access" for newcomers to spread knowledge especially since actual universities do not teach anymore "real" computing solution preferring the "commercial" way.
It didn’t work for me; I have an old expired PGP key associated with my email address in addition to my current PGP key, and the program picked the wrong key to use.