You should be filing as a nonresident in New Mexico. New Mexico calculates taxable income as if you both lived and worked in New Mexico then applies a percentage based on how much of your total income was from New Mexico sources.
To get that "percentage New Mexico" right, make sure on the NM state tax screen where you designate your New Mexico income that only your income is entered as "New Mexico source". Once you do that, the correct percentage will be applied and you'll only pay New Mexico tax on that percentage of your income.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"