How do I change the docroot on Wordpress?

“”.virtualHost.documentRoot = "/var/www/";

I already had Wordpress setup and it was using a store directory, but I want it in /var/www/ which exists and has the following permissions and is empty after I rebuild my nix files

drwxr-xr-x  2 wordpress nginx 4096 Dec 30 23:07

What am I doing wrong here?