But that does not help if different laptops need different X video drivers, does it?
Before FreeBSD-13.0 was released, I found that setting up X video drivers was non-trivial and very demanding, but, not so much nowadays. No more
xorg.conf files or other configuration text files are strictly necessary for me to set up either the kde5 or mate mega-port packages. It's my habit to create a
~/.xinitrc file for initial testing, but if I just wanted to use lightdm or some other display manager right off the bat, then I don't think I would need any
~/.xinitrc either.
Assuming I wanted to prepare an ISO image (which I don't) for kde5 or mate, I'd just stack it with multiple video drivers. This is the approach I think Linux Mint was taking as of LM version 19, and may likely be the approach they still use. To test this theory, I loaded up my Lenovo laptop system (which I'm using right now) with unnecessary drivers. I actually use xf86-video-ati on this system, but, as of right now, I also have xf86-video-amdgpu and xf86-video-intel on this system, with no ill effects. I have no nvidia system with which to test my theory, so it might not work there, but I suspect that it very likely might.
In
/etc/rc.conf I have
lightdm_enable="YES"
and
kld_list="acpi_video"
but no other X11 related configuration. The system then auto-configures everything else that I need when X starts.
For instance, if I run this configuration on my Lenovo laptop, it will automajickally load radeonkms.ko, but if I run the same configuration on my HP laptop, it will load i915.ko with no questions asked, and no end-user configuration hints supplied in kld_list or elsewhere.
This type of simplified configuration requires the drm-kmod package. I don't believe it would have worked on FreeBSD version 11 or 12, so I'll ask 13.0-RELEASE to take the bow. (Roll on snare drum. Everybody claps.
Curtains.)