Best resources for learning about the NixOS module system?

You might find this thread useful, along with the reuslting implementation linked in the PR

Bottom line is: it’s possible to use the module system outside of nixos, to configure specific aspects of a package. It could for instance replace the very poor nixpkgs vimrc configure mechanism.