>> I guess I can do something like add an environment variable GUIX_INSTALL_DIRECTORY, or something like that...
>
> What's different about GUIX_INSTALL_DIRECTORY than the usual: PREFIX?
The value of that variable would not be embedded in the binary. It is
looked up at runtime, so the binary only contains the literal
“GUIX_INSTALL_DIRECTORY”.