Rust does not work with `language_version: nightly`

I'm using the hooks defined at https://github.com/pxeger/pre-commit-rust.

I am specifying a rust version because rustfmt for the version of Rust pre-commit.ci appears to use by default differs in output from my workstation, but I don't want to have to constantly keep my hook definition up to date, so I specified language_version: nightly. But this caused an error:

fmt......................................................................Failed
- hook id: fmt
- exit code: 1

info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
error: could not create temp file /opt/rust/rustup/tmp/q7g35x_vp9vm4q_x_file: Read-only file system (os error 30)
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
error: could not create temp file /opt/rust/rustup/tmp/6o8kv5zh3e9mm2ip_file: Read-only file system (os error 30)

(See https://results.pre-commit.ci/run/github/346793498/1715375621.R1vd2JLtRieC1YAcjF_D-g)