According to the documentation, the latest version of Nx is 18.2.0, which is compatible with Angular 17.3.0. However, there hasn't been a new Nx release specifically for Angular 18 yet.
Is it possible to use Angular 18 with Nx version 18.2.0?
They released version 19.1.0, which includes support for Angular 18. For more details, see here