1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01: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" \