nixos-generators: add --show-trace option

This flag is available on all nix-related commands. Migth as well have
it too!
This commit is contained in:
zimbatm 2019-12-19 23:38:24 +01:00 committed by Lassulus
parent 8d3710924a
commit 942232e300

View File

@ -32,6 +32,7 @@ Options:
* --list: list the available built-in formats
* --run: runs the configuration in a VM
only works for the "vm" and "vm-no-gui" formats
* --show-trace: show more detailed nix evaluation location information
* --system: specify the target system (eg: x86_64-linux)
* --cores : to control the maximum amount of parallelism. (see nix-build documentation)
* -I KEY=VALUE: Add a key to the Nix expression search path.
@ -84,6 +85,9 @@ while [[ $# -gt 0 ]]; do
format_path=$format_dir/vm.nix
fi
;;
--show-trace)
nix_args+=(--show-trace)
;;
--system)
target_system=$2
shift