There is currently no (easy) way to only enable a certain composite action step when some input is set, so just don't automatically install Nix at all.
nix flake update