I'm not a fan of the flex line for gas connection. I know it's commonly done, but I prefer to see black pipe and a union fitting to make the connections. (Also make sure you have a drip/sediment leg right before the final connection to the appliance. In your photo, that part is cut off, so I can't tell if it's there or not.)
For the water lines, not only do you have the flexibility of the flexible lines, but you also have copper lines, which are very easy to cut and re-fit if you need something different.
When I replaced mine, I worried first about the exhaust stack mating, then got the gas fitted with black pipe, then worried last about the copper piping, as that is roughly in decreasing order of flexibility on the jobsite.