If I run a command such as nix run
, nix flake update
, etc. I get the following error:
error:
… while fetching the input 'git+file:///<redacted>'
error: '/<redacted>' is a shallow Git repository, but shallow repositories are only allowed when `shallow = true;` is specified.
I’ve tried adding shallow = true;
to the flake.nix
but it’s an unsupported attribute. Neither the error text nor Google searching provide any clues to where I’m supposed to specify shallow = true
.