I have a 2015 MacBook Pro which is going to be the oldest-supported model for macOS 12 Monterey, so Apple seems to be supporting computers for ~7 years.
The mainline Linux kernel will also support pretty much anything you throw at it these days anyways. My 12 year old Thinkpad almost has complete feature parity with my perpetually upgraded desktop, which is a super nice basis to build my personal infrastructure off of.