generation 485 25.11.20250714.62e0f05

This commit is contained in:
2025-07-22 14:23:04 -04:00
parent e0854cffc6
commit 5f41363bf2
3 changed files with 21 additions and 1 deletions

View File

@@ -54,7 +54,9 @@ if grep --color error /tmp/nixos-switch.log; then
fi
# Get current generation metadata
current=$(nixos-rebuild list-generations | grep current)
# current=$(nixos-rebuild list-generations | grep current)
# current=$(sudo nix-env --list-generations --profile /nix/var/nix/profiles/system | tail -n 1 | awk '{print $1, $2, $3}')
current=$(nixos-rebuild list-generations --json | jq -r '.[1] | [.generation, .buildDate, .nixosVersion, .kernelVersion, (.current|tostring)] | @tsv' | awk '{print "generation", $1, $2}')
# Commit all changes witih the generation metadata
git --git-dir /home/synchronous/nix-cfg/.git add .