The simple answer is that you configure replication on each node individually, you cannot include any system databases as a replica. However, with AOG, it's recommended to use another server for the distribution database. There are a number of websites that demonstrate how to set up replication using a remote distributor for AOG nodes. Replicate will work in either scenario, however, from personal experience, failovers are handled much more smoothly using a remote distributor.