171 current 2025-01-03 00:20:05 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-01-03 00:20:13 -05:00
parent 1e86a2fe13
commit 0cd456a7ef
3 changed files with 24 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
pushd /home/synchronous/nix-cfg
# Early return if no changes were detected (thanks @singiamtel!)
git --git-dir /home/synchronous/nix-cfg/.git add .
if git --git-dir /home/synchronous/nix-cfg/.git diff --quiet; then
echo "No changes detected, exiting."
popd
@@ -45,7 +46,7 @@ fi
current=$(nixos-rebuild list-generations | grep current)
# Commit all changes witih the generation metadata
git --git-dir /home/synchronous/nix-cfg/.git add .
# git --git-dir /home/synchronous/nix-cfg/.git add .
git --git-dir /home/synchronous/nix-cfg/.git commit -am "$current"
# Back to where you were