git rm '*.nix'
nix-shell https://coq.inria.fr/nix/toolbox --arg do-nothing true --run generateNixDefault
# At that point, nix-shell does work
nix-shell --arg do-nothing true --run "initNixConfig coq"
# At that point, running nix-shell gives
# mkdir: cannot create directory ‘/nix/store/...-coq-dev’: Read-only file system
To reproduce the problem, in the Coq repo, run: