Flakes and CMake Package Registry

I would appreciate guidance of the following matter.

CMake Package Registry (reference) registers packages at “~/.cmake/packages/”. However, inside a flake one could no access such location (it appears to be mapped to a read-only homeless-shelter folder).

Does NIX account for such scenario? Are there workarounds? (i.e.: use impureEnvVars as derivation field?)

Context: I am preparing a flake for zephry os, cmake registered packages are paramount during both compilation and building process. I am also looking for alternatives in CMake side, however, being NIX such a resourceful framework, I am wondering if there are solutions in place.