Deductions & credits

what if you are the buyers of a home in 2024 and you assumed the solar loan not lease.  How do you claim that on taxes?