Place the block declaration into the view/frontend/layout/cms_index_index.xml
file.
See an example from the core’s PayPal module:
https://github.com/magento/magento2/blob/develop/app/code/Magento/Paypal/view/frontend/layout/cms_index_index.xml
The declaration place the PayPal logo and banners on the frontend home page only.