There are sealants against mice, like stainless steel wool, but around electrical wires, you should probably use a sealant specifically made for that purpose (it doesn't harden, which makes the mice not want to gnaw on it). I think you can find information on Stick.se