rebuild: Fix display
This commit is contained in:
parent
cd4536c53b
commit
cce96e063d
|
@ -50,7 +50,6 @@ do
|
||||||
done <<< "$(ls /nix/var/nix/profiles/system/specialisation)"
|
done <<< "$(ls /nix/var/nix/profiles/system/specialisation)"
|
||||||
|
|
||||||
# Apply
|
# Apply
|
||||||
info "Applying"
|
|
||||||
confirm="n"
|
confirm="n"
|
||||||
if [ "$verb" = "confirm" ]
|
if [ "$verb" = "confirm" ]
|
||||||
then
|
then
|
||||||
|
@ -59,6 +58,7 @@ then
|
||||||
fi
|
fi
|
||||||
if [ "$verb" = "test" ] || [ "$verb" = "switch" ] || [ "$confirm" = "y" ]
|
if [ "$verb" = "test" ] || [ "$verb" = "switch" ] || [ "$confirm" = "y" ]
|
||||||
then
|
then
|
||||||
|
info "Applying"
|
||||||
"$toplevel/bin/update-password-store"
|
"$toplevel/bin/update-password-store"
|
||||||
sudo nixos-rebuild --flake "$self#$HOSTNAME" test "${specialisationArgs[@]}" "$@"
|
sudo nixos-rebuild --flake "$self#$HOSTNAME" test "${specialisationArgs[@]}" "$@"
|
||||||
fi
|
fi
|
||||||
|
@ -71,5 +71,6 @@ then
|
||||||
fi
|
fi
|
||||||
if [ "$verb" = "boot" ] || [ "$verb" = "switch" ] || [ "$confirm" = "y" ]
|
if [ "$verb" = "boot" ] || [ "$verb" = "switch" ] || [ "$confirm" = "y" ]
|
||||||
then
|
then
|
||||||
|
info "Setting as boot"
|
||||||
sudo nixos-rebuild --flake "$self#$HOSTNAME" boot "$@"
|
sudo nixos-rebuild --flake "$self#$HOSTNAME" boot "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue