Is this a compound or complex sentence and tell me if it is cc or sc

When I come home from school, the first thing I like to do is eat a snack.

This sentence is a complex sentence because it contains one independent clause "The first thing I like to do is eat a snack" and one dependent clause "When I come home from school."