Also, since we are planning to eventually build custom core gadget snap for this, it would be nice to know how to specify this in the gadget snap so that this doesn’t need to be done manually.
if you create your own gadget you can also just create your own config.txt in it and set dtoverlay=w1-gpio …
the modprobe should not be needed, typically our kernel automatically loads the necessary modules when an overlay is enabled.
that said … i dont think we do have an interface for 1-wire devices at all currently, that might require a feature request for snapd to add one … so you can access the pins from a snap package.