deploy: allow for passing in of "--show-trace" to nixos-rebuild

This commit is contained in:
Aaron Bieber 2023-05-23 18:56:57 -06:00
parent dbd55d2753
commit 0c771eb8e2
No known key found for this signature in database

View File

@ -27,7 +27,7 @@ rebuild() {
return 0
fi
nixos-rebuild --flake .#${1} --build-host root@${host} --target-host root@${host} switch
nixos-rebuild ${TRACE} --flake .#${1} --build-host root@${host} --target-host root@${host} switch
return $?
}
@ -105,7 +105,7 @@ if [ "$1" = "install" ]; then
fi
if [ "$1" = "local" ]; then
sudo nixos-rebuild --flake .#$(uname -n) switch
sudo nixos-rebuild ${TRACE} --flake .#$(uname -n) switch
exit $?
fi