Just an FYI - I’ve updated by script to install sanoid on TrueNAS Scale.
Working on 25.04.2.6 for me.
Feedback welcome.