This allows doing any necessary actions that were not in the installed nixos-rebuild (such as downloading a new version of Nix). This does require us to be careful that nixos-rebuild is backwards-compatible (i.e. can run in any old installation).