People running nixos-install in non-NixOS environments occasionally run into the mktemp builtin not being loaded into bash (yes, even NixOS' bash). Rather than try and figure out why exactly that is happening, just use a known good mktemp from coreutils.