Annotate variants with hom var samples

I am trying to annotate the rows (variants) of my matrixtable with all the IDs (mt.s) of the samples that are homozygous reference for the variant. I am not too sure how to go about it, may I get some advice please.