updated auto-install script

This commit is contained in:
shynd 2025-02-20 19:50:29 +01:00
parent 56ba0383e9
commit 1a5f6d0270
2 changed files with 32 additions and 1 deletions

View File

@ -250,3 +250,35 @@ echo "-----"
printf "\n%.0s" {1..3}
# cloning hyprland dotiles to home folder
# TODO
# return to nixos-config directory
ce ~/nixos-config
if [ ! -f "$HOME/.config/fastfetch/nixos.png" ];
cp -r assets/fastfetch "$HOME/.config/"
fi
printf "\n%.0s" {1..2}
if command -v Hyprland &> /dev/null; then
printf "\n${OK} installation completed!${RESET}\n"
sleep 2
printf "\n${NOTE} you can start Hyprland by typing Hyprland (not the capital H)${RESET}\n"
printf "\n${NOTE} it is highly recommended to reboot your system${RESET}\n\n"
# prompt user to reboot
read -rp "${CAT} would you like to reboot now? (y/n): ${RESET}" HYP
if [[ "$HYP" =~ ^[Yy]$ ]]; then
# if user confirms, reboot the system
systemctl reboot
else
# print a message if the user does not want to reboot
echo "${OK} reboot skipped"
fi
else
# print error message if Hyprland is not installed
printf "\n${WARN} Hyprland failed to install, please check install log files...${RESET}\n\n"
exit 1
fi

View File

@ -14,7 +14,6 @@ in
environment.systemPackages = (with pkgs; [
# system packages:
# TODO
bc
baobab
btrfs-progs