I really wish this entire romanticism of the good old days when people only got into computer science because they breathed ate and dreamed about computers would die.
It was never reality - I graduated in 1996 and have worked at 10 jobs everything from lifestyle companies, to startups, to boring old enterprise to BigTech and now consulting companies. To a tee everyone has treated it like a job and not some religious calling. There is absolutely nothing wrong with coming to work at 8 leaving at 6 and not thinking about computers until the next day.
You don’t need to be doing side projects and open source contributions to do your job as a software developer anymore than a surgeon needs to be performing operations at home.
No I wouldn’t have chosen a major because I enjoyed it if it didn’t make any money. I didn’t then and I still haven’t found a method to get over my addiction to food and shelter.
That's just your experience, though. It reflects mine, before I went to elite companies, where it is quite normal for people to live-and-breath software, at almost all hours.