diff --git a/bin/nixos-operations-script.sh b/bin/nixos-operations-script.sh index bfca4d1..7de2060 100755 --- a/bin/nixos-operations-script.sh +++ b/bin/nixos-operations-script.sh @@ -105,4 +105,12 @@ fi echo "Running this operation: nixos-rebuild ${operation} ${options}" /run/current-system/sw/bin/nixos-rebuild $operation $options +case "$operation" in + boot|switch) + echo "" + echo "New generation created: " + /run/current-system/sw/bin/nixos-rebuild list-generations + ;; +esac + exit 0