Don't use the side speakers, there's no need for them in a small space.
Don't put a subwoofer next to a TV or computer, unless it is magnetically shielded.
Other than that, your proposed layout seem good, i would not worry about the rear speakers being close to the wall. If you want you can mount them on wall mounts that give 10-15cm of clearance.