Can I connect a wall switch to DC?
Nope. The dimmer requires 120VAC to work. The fan needs 12VDC.
This fan could be controlled with a 2-wire speed control, like this one. Or, consider a different 140mm fan with 4-wire control, and connect a PWM speed controller to it.