From a799f489865499f944768b7457979f2be75ab216 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 10 Dec 2024 12:38:18 -0500 Subject: [PATCH] Bin: list generations when creating a new one via NOS --- bin/nixos-operations-script.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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