From e99329fe78ffb9844db773bd3ce31707ace83971 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sun, 31 Mar 2024 11:36:41 +0100 Subject: [PATCH] Add reboot requests to the script when needed --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 62124b2c..20dd7cd6 100755 --- a/install.sh +++ b/install.sh @@ -40,6 +40,11 @@ if ! nix --version &>/dev/null; then curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh echo -e "${GREEN}[I] Installed Nix.${ENDCOLOR}" + echo + echo -e "${YELLOW}[I] A reboot is required for Nix to work correctly.${ENDCOLOR}" + echo -e "${GREEN}[I] Press ENTER to reboot.${ENDCOLOR}" + read + systemctl reboot fi # ============== HOME MANAGER ============== @@ -55,3 +60,8 @@ rm $HOME/.config/home-manager/home.nix ln -s $HOME/dotfiles/home.nix $HOME/.config/home-manager/home.nix home-manager -b backup switch +echo +echo -e "${GREEN}[I] Done. Press ENTER to reboot.${ENDCOLOR}" +read + +systemctl reboot