Since I do intend on configuring every trackball I own to use this scheme, not just the MX Ergo.
My profiles are actually just "special" NixOS modules in that they orchestrate settings that usually span the NixOS/home-manager boundary, or otherwise set up configurations from multiple modules at once.