I asked HV about allergies and this in particular, as we have lots of allergies between us.
She said for kids whose parents have various allergies but not specifically nuts, then wait till age 3 to try them with nuts. For kids whose parents have a nut allergy, wait until age 5 to try them with nuts.
hth