Fancontrol devices keep changing

Hey, I’m on an Asus Z790 Proart board and am trying use hardware.fancontrol to adjust my fans. I used sensors-detect to find the sensors and then created the config with pwmconfig. Pwmconfig created the file at /etc/fanconfig and it worked when I called fanconfig in the terminal. I then tried to enable fancontrol in my configuration.nix (see snippet below) but that wouldn’t run the fancontrol service. I then rebooted and now the path to the temp sensor / fans has changed from hwmon11 to hwmon4 when I execute sensors-detect and pwmconfig again.
In the journalctl of fanconfig it states that the generated file is broken.
Any idea what the problem is here and how to fix this?

  boot.kernelModules = [ "coretemp" "nct6775" ];

  hardware.fancontrol = {
	enable = true;
	config = ''
	 INTERVAL=10
	 DEVPATH=hwmon11=devices/platform/nct6775.656
	 DEVNAME=hwmon11=nct6798
	 FCTEMPS=hwmon11/pwm6=hwmon11/temp1_input hwmon11/pwm2=hwmon11/temp1_input
	 FCFANS=hwmon11/pwm6=hwmon11/fan6_input hwmon11/pwm2=hwmon11/fan2_input
	 MINTEMP=hwmon11/pwm6=50 hwmon11/pwm2=25
	 MAXTEMP=hwmon11/pwm6=95 hwmon11/pwm2=70
	 MINSTART=hwmon11/pwm6=34 hwmon11/pwm2=66
	 MINSTOP=hwmon11/pwm6=4 hwmon11/pwm2=26
	 MINPWM=hwmon11/pwm6=4 hwmon11/pwm2=20
	 MAXPWM=hwmon11/pwm6=150 hwmon11/pwm2=255
	'';
  };

Of course, you can also use lspci to look at the device data in a possibly easier-to-read way.

Also, use services.udev.extraRules on NixOS to create udev rules, instead of manually fiddling with /etc/udev.

Thanks for the answer.
Creating udev rules for the pwm and temp worked (that article is very well made and detailed). I still couldn’t get it to work as the DEVPATH and the DEVNAME still needed hwmonxx which I couldn’t solve with udev. I ended up adjusting the fans in the bios, which works for now. I also saw that the autogenerated file /etc/fancontrol seems to correctly update, though I didn’t manage to use that in my configuration.nix.
Edit: I also found this issue in the lm-sensors Github but I don’t really want to use a script to mess with sensor stuff as I don’t know what else depends on that data.