Configure nginx with nixos and nix to host a FullStack application?

Hello. The title already says it all. I have a FullStack web application built with SvelteKit (nodejs) and a PostgreSQL database (hosted on the server already). Now I need nginx configured to host this application.

Does anyone have a guide for that or can tell me how I do it?