From 942232e3000e80b4b4ad34cb3c07923415c27493 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Thu, 19 Dec 2019 23:38:24 +0100 Subject: [PATCH] nixos-generators: add --show-trace option This flag is available on all nix-related commands. Migth as well have it too! --- nixos-generate | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos-generate b/nixos-generate index f84cf40..a04c093 100755 --- a/nixos-generate +++ b/nixos-generate @@ -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