Nerd anon here. Have computer certifications out the wazoo to back me up.
An 8 year old computer is ancient in tech years, so this may not be the generous gift you think it is.
See if there is some interested charity or school in a low economic area nearby and donate your gently used equipment to them. Don’t offer them non working equipment or items without operating system licenses as it would cost too much to make them workable. If the charities pass on your “gift” please don’t be upset. They have been down this road multiple times and know old computers are not always a cost effective gift.
Otherwise, just take your stuff to the local electronics recycler.