Deductions & credits

If you are an employee at the nursing home then you are commuting and cannot deduct the mileage. (But) If you are self employed at the nursing home and your residence qualifies as your "tax home" then mileage to a second place of work is a business expense.

Tax Home
To determine whether you are traveling away from home, you must first determine the location of your tax home.
Generally, your tax home is your regular place of business or post of duty, regardless of where you maintain your family home. It includes the entire city or general area in which your business or work is located.
If you have more than one regular place of business, your tax home is your main place of business. See Main place of business or work , later.
If you don’t have a regular or a main place of business because of the nature of your work, then your tax home may be the place where you regularly live. See No main place of business or work , later.
If you don’t have a regular or main place of business or post of duty and there is no place where you regularly live, you are considered an itinerant (a transient) and your tax home is wherever you work. As an itinerant, you can’t claim a travel expense deduction because you are never considered to be traveling away from home.
Main place of business or work.   If you have more than one place of work, consider the following when determining which one is your main place of business or work.
The total time you ordinarily spend in each place.
The level of your business activity in each place.
Whether your income from each place is significant or insignificant.