If you do desire "external keyboards, more than one, slightly different configurations for each one", ... then at that point I think it would be worth considering the benefits of a keyboard where the keyboard firmware itself can be customised.
With the customisable keyboard firmware, your tweaks would remain on the keyboard, & wouldn't need any setup on the OS.