171 current 2025-01-03 00:20:05 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user