1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02:00

home-manager: Use --show-trace only when verbose

This commit is contained in:
Robert Helgesson 2017-02-21 21:49:12 +01:00
parent a3900340e4
commit d2e8c57bd5
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -40,7 +40,11 @@ function doBuild() {
extraArgs="$extraArgs -I $p"
done
nix-build --show-trace $extraArgs \
if [[ $VERBOSE ]]; then
extraArgs="$extraArgs --show-trace"
fi
nix-build $extraArgs \
"@HOME_MANAGER_EXPR_PATH@" \
--argstr modulesPath "@MODULES_PATH@" \
--argstr confPath "$confFile" \