1. We can sing and dance for the elderly people in nursing homes.

2. We can sing and dance for the elderly people at nursing homes.

==============
Do we have to use 'in' or 'at'? Are both OK?

Both are OK, yes, but "in" is better ... unless you'll be giving an outdoor performance!

=)