From 338f97323679c71f4e7ce56a103fa23914670dad Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Tue, 17 Jun 2025 12:29:36 +0200 Subject: [PATCH] more descriptive script --- rebuild-nix-system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebuild-nix-system.sh b/rebuild-nix-system.sh index 2c7c09d..92d4273 100755 --- a/rebuild-nix-system.sh +++ b/rebuild-nix-system.sh @@ -59,7 +59,7 @@ sudo nixos-rebuild switch --flake ./#$NIXOS_HOST &>logs/nixos-switch.log || (cat current=$(nixos-rebuild list-generations | grep current) # Commit all changes witih the generation metadata -git commit -am "$current" +git commit -am "$NIXOS_HOST: $current" # Clean up old generations older than 180 days sudo nix-collect-garbage --delete-older-than 180d &>logs/nixos-gc.log || (cat logs/nixos-gc.log | grep --color error && exit 1)