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

Use full flags in rebuild script

This commit is contained in:
RGBCube 2023-11-03 14:39:42 +03:00
parent 1bd76d3299
commit 4cde8da540
No known key found for this signature in database

View file

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