I wonder how hard it would be to abstract the intent from the particulars of the distro being used. And then implement adapters for Arch, Slackware, Fedora and arrive at the same final polished setup.
In fact the scripts for Linux and macOS are almost identical.