Thanks for the fixes. #2–#6 are addressed: the uv cache and root's Python now live under a root-owned 0700 dir, refs/main → snapshots/<sha> is correct (sha matches the HF API), HF_HOME + HF_HUB_OFFLINE are set, the stamp covers all inputs, and the unit is ordered after prepare-dirs. Still requesting changes, though: the new code has three bugs that break the unit after its first boot, and #1 isn't fully closed.
Requesting changes: two ways for the container to get root on mars, and the model pinning doesn't take effect.
Evaluates cleanly (nix eval of mars' toplevel passes), but I don't think this works once deployed. The PR assumes the venv has the same paths on the host and in the container, and it doesn't. The only testing was a live install inside the container, which isn't what this unit does.