Here are a number of files for different lego stud configurations. This will allow you to add studs for a Lego brick to anything you want to print. The base brick was courtesy of Perfect Printable Brick, https://fweynschenk.github.io/ppBricks/.
The author marked this model as their own original creation.