rebuild: Fix display

This commit is contained in:
Geoffrey Frogeye 2025-01-23 18:19:44 +01:00
parent cd4536c53b
commit cce96e063d
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -50,7 +50,6 @@ do
done <<< "$(ls /nix/var/nix/profiles/system/specialisation)"
# Apply
info "Applying"
confirm="n"
if [ "$verb" = "confirm" ]
then
@ -59,6 +58,7 @@ then
fi
if [ "$verb" = "test" ] || [ "$verb" = "switch" ] || [ "$confirm" = "y" ]
then
info "Applying"
"$toplevel/bin/update-password-store"
sudo nixos-rebuild --flake "$self#$HOSTNAME" test "${specialisationArgs[@]}" "$@"
fi
@ -71,5 +71,6 @@ then
fi
if [ "$verb" = "boot" ] || [ "$verb" = "switch" ] || [ "$confirm" = "y" ]
then
info "Setting as boot"
sudo nixos-rebuild --flake "$self#$HOSTNAME" boot "$@"
fi