nixos-rebuild: Don't create out-link in PWD with test/dry-activate

This commit is contained in:
Marco Rebhan
2022-07-18 16:03:04 +02:00
parent 8b72dae17b
commit 0a71372a90
@@ -254,7 +254,7 @@ nixBuild() {
nixFlakeBuild() {
logVerbose "Building in flake mode."
if [[ -z "$buildHost" && -z "$targetHost" && "$action" != switch && "$action" != boot ]]
if [[ -z "$buildHost" && -z "$targetHost" && "$action" != switch && "$action" != boot && "$action" != test && "$action" != dry-activate ]]
then
runCmd nix "${flakeFlags[@]}" build "$@"
readlink -f ./result