more descriptive script

This commit is contained in:
2025-06-17 12:29:36 +02:00
parent 0a9e4d7ce8
commit 338f973236

View File

@ -59,7 +59,7 @@ sudo nixos-rebuild switch --flake ./#$NIXOS_HOST &>logs/nixos-switch.log || (cat
current=$(nixos-rebuild list-generations | grep current)
# Commit all changes witih the generation metadata
git commit -am "$current"
git commit -am "$NIXOS_HOST: $current"
# Clean up old generations older than 180 days
sudo nix-collect-garbage --delete-older-than 180d &>logs/nixos-gc.log || (cat logs/nixos-gc.log | grep --color error && exit 1)