A new program will offer interest-free loans to install solar panels and batteries to NSW homes.