Basically https://wiki.nixos.org/wiki/CCache
But I have no root perms on a nixos remote builder machine I have been given access to.
This allows ccache setup without having the perms, as /tmp/ccache with 777 perms can bypass that.
Also ccache stats require nixbld user permissions as /tmp/ccache entries are owned by that group while the build is running.
There's also one more thing to keep in mind, can't easily chmod or rm -rf /tmp/ccache anymore.
So one workaround is to breakPointHook into getting a nixbld user and moving or deleting stuff around.