feat: add some scripts

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-03 09:46:43 +01:00
parent 39a98152ba
commit f8f2bd75b1
5 changed files with 320 additions and 0 deletions

View file

@ -66,6 +66,12 @@ NIX_EXIT_STATUS=$?
# Check the exit status
if [ "$NIX_EXIT_STATUS" -eq 0 ]; then
echo "INFO: Dry-build for host '$HOSTNAME' completed successfully."
# Extract and display warnings even on success
WARNINGS=$(echo "$NIX_OUTPUT_ERR" | grep -E "^(warning:|trace:)" || true)
if [ -n "$WARNINGS" ]; then
echo "WARNINGS from nix-instantiate:"
echo "$WARNINGS"
fi
if [ "$VERBOSE" = true ]; then
echo "Output from nix-instantiate:"
echo "$NIX_OUTPUT_ERR"