Running into errors when updating NixOS 21.05

I have a Nixos install on my server that I was just trying to update and I am running into this error. I haven’t made any changes to my Nix configuration in a while, but I am unable to update.

After running sudo nixos-rebuild switch, I run into this error message:

activating the configuration...
setting up /etc...
ln: failed to create symbolic link '/usr/bin/.env.tmp': Operation not permitted
mv: cannot stat '/usr/bin/.env.tmp': No such file or directory
Activation script snippet 'usrbinenv' failed (1)

What should I do from here? I wasn’t able to find any solution to this problem.

That error is coming from this activation script: nixpkgs/activation-script.nix at 634141959076a8ab69ca2cca0f266852256d79ee · NixOS/nixpkgs · GitHub

Perhaps the symlink to env is not being created.