I’m not sure that the dimmer switch will handle the current.
When I was working on my helmet cooler project, 4yrs ago I think, I went thru a number of ideas to control fan speed. I ended up having to go with a couple big power resisters because I couldn’t find a reasonably priced rotary variable resister that could dump enough heat. I think I used 2x 10W power resisters fastened to a big heatsink and it’s worked fine ever since. Not adjustable tho.
I tried several times to make a variable speed fan using the biggest rotary variable resisters (potentiometers) I could find (@Mouser) at a reasonable price. But w/o a heatsink they couldn’t handle the heat. I tried several times to fasten a heatsink to the big variable resister, but the heatsink couldn’t handle the vibration and kept coming off. Each time heatsink came off the variable resister cooked.
In the AC world it’s easy to reduce power because there’s some semi-conductor thingee that chops off the tops of the sine waves, but in the DC world all you can do is add resistance and that means heat.