One option is to build those modules inside a container and then load them into you kernel. See Building Kernel Modules with Podman — Project Atomic for example. Note that this will need to be redone every time you update the kernel.
As for the udev rule, you should be able to place it in /etc/udev/rules.d/.