Is there a way to set fan speed permanently on A4000 and A4500 witn Ubuntu 22.04

This is really bugging me now

I have set the Coolbits setting to 24, and in the UI I am running the following commands:

xhost si:localuser:root
sudo nvidia-settings -a [fan:0]/GPUTargetFanSpeed=100
sudo nvidia-settings -a [fan:1]/GPUTargetFanSpeed=100
sudo nvidia-settings -a [fan:2]/GPUTargetFanSpeed=100
sudo nvidia-settings -a [fan:3]/GPUTargetFanSpeed=100

That successfully sets the fan speed to 100% on each card, but then after a reboot it defaults back to the original fan settings, is there any way to make this more permanent?

Simon