MHD equilibria with nonconstant pressure in nondegenerate toroidal domains