Gravitational probes of dark matter physics