Worth buying for moderate gaming?

Your opinion on these specs and if this would be worth buying at this price would be much appreciated. Only looking to do occasional gaming but would want to be able to run most games smoothly and look good and that would last 5-7+ years . Thank you.