The up subcommand is a simple shortcut for nixos-generate-config that is compatible with nixflk. There is a short explanation in the the getting started guide.
up
nixos-generate-config