You can also be explicit about who's being nice. "That's nice of you."
This really depends on what you want to mean by "nice".