Functions like find-lib-dir from setup/dirs document that:
The result is
#fif no such directory is available.
What does "available" mean in this context? From experiments, it seems that the functions don't return #f merely because the relevant directory does not exist. Are all such functions like find-collects-dir in that "a #f result is likely only in a stand-alone executable that is distributed without libraries"?
I have some code for Guix to generate config.rktd tables for layers that extend some parent layer. Right now, the code runs in an arbitrary Racket and just manipulates the hash tables, which involves some hard-coded assumptions about how a layer is laid out. It seems like it might be better to run the code in the parent layer and use the setup/dirs functions, but I'm not sure if I need to be prepared to handle #f results.