According to globalPackagesFolder NuGet Documentation, it allows you to change the location of the default global packages folder instead of Users{username}.nuget\\packages.
As it stands today, it seems the two settings do the same, but globalPackagesFolder has to be used for projects using PackageReference, repositoryPath is for projects using packages.config.