Skip to content

Commit

Permalink
sudo nixos boot rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
appaquet committed Oct 16, 2024
1 parent 0ba5633 commit def425a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ nixos)
;;
boot)
shift
nixos-rebuild boot --flake ".#${HOSTNAME}" 2>&1 | ${NOM_PIPE}

prime_sudo
sudo nixos-rebuild boot --flake ".#${HOSTNAME}" 2>&1 | ${NOM_PIPE}
;;
switch)
shift
Expand Down Expand Up @@ -314,7 +316,7 @@ gc)
sudo ${ncg} -d --delete-older-than "14d"

if [[ "$NIXOS" -eq 1 ]]; then
echo "Call x nixos boot to remove old generations from boot"
echo "⏩️ Call x nixos boot to remove old generations from boot"
fi
;;

Expand Down

0 comments on commit def425a

Please sign in to comment.