The opportunity cost of holding money is the nominal interest rate.
When individuals choose to hold money instead of investing it in interest-earning assets, they forgo the interest they could have earned. Therefore, the nominal interest rate represents the cost of not using that money to earn a return.