nixos-rebuild --fast: Don't imply --show-trace

There is no logical reason for --fast to imply --show-trace, and this
seems to be a historical accident. Using --show-trace by default is
bad UX since it can give very long error messages (e.g. 550 lines for
a non-existent attribute in environment.systemPackages).
This commit is contained in:
Eelco Dolstra 2021-06-03 19:01:09 +02:00
parent 53bc86a9ad
commit 4cffb1212a
2 changed files with 3 additions and 5 deletions

@ -402,10 +402,9 @@
</term>
<listitem>
<para>
Equivalent to <option>--no-build-nix</option>
<option>--show-trace</option>. This option is useful if you call
<command>nixos-rebuild</command> frequently (e.g. if youre hacking on
a NixOS module).
Equivalent to <option>--no-build-nix</option>. This option is
useful if you call <command>nixos-rebuild</command> frequently
(e.g. if youre hacking on a NixOS module).
</para>
</listitem>
</varlistentry>

@ -79,7 +79,6 @@ while [ "$#" -gt 0 ]; do
--fast)
buildNix=
fast=1
extraBuildFlags+=(--show-trace)
;;
--profile-name|-p)
if [ -z "$1" ]; then