  In this paper, we show that a nontrivial compact graph manifold is
nonpositively curved if and only if its fundamental group virtually embeds into
a right-angled Artin group. As a consequence, nonpositively curved graph
manifolds have linear fundamental groups.
