Probably somewhere in the middle between nature and nurture, and sexuality is also fluid for some people. It's not like someone who is straight "choosing" to be gay, unless its juts a mentally forced attraction, or relations and sex without any real innate attraction. Thats why its so cringey when gay people are like "I chose to be gay", because they are using "choose" differently than most people; either that or #brainwashed.
It's hard to be definitive, all of the studies and evidence and personal testimony seems to point at it being a trait that can manifest, but may or may not due to environmental influences... but even that's a sometimes, as plenty of people are raised in environments that totally discourage homosexuality but "end up" gay anyway
