1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Make sure git is available in rebuild.sh

This commit is contained in:
RGBCube 2023-11-02 14:32:51 +03:00
parent f405d00867
commit ad0d385b4e
No known key found for this signature in database

View file

@ -27,7 +27,7 @@ else
read -p "Clean garbage? [y/N]: " clean_garbage
fi
sudo nixos-rebuild switch --impure --flake .#$machine || exit 1
nix-shell -p git --command "sudo nixos-rebuild switch --flake .#$machine" || exit 1
if [[ $clean_garbage =~ ^[Yy]$ ]]; then
sudo nix-collect-garbage -d