Not as much as you might think. See, for example, Lynch syndrome. An inheritable condition that dramatically increases your risk of certain kinds of cancer. https://www.mayoclinic.org/diseases-conditions/lynch-syndrom...
Gene's can be switched on an off and gene are by nature inheritable. Not all genes mind otherwise we would be identical.