From 1a5f6d0270df6196f300a23d9fb4fe2639e91d81 Mon Sep 17 00:00:00 2001 From: shynd Date: Thu, 20 Feb 2025 19:50:29 +0100 Subject: [PATCH] updated auto-install script --- auto-install.sh | 32 ++++++++++++++++++++++++++++++++ hosts/default/packages-fonts.nix | 1 - 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/auto-install.sh b/auto-install.sh index e2ef2bc..5d086cc 100755 --- a/auto-install.sh +++ b/auto-install.sh @@ -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 \ No newline at end of file diff --git a/hosts/default/packages-fonts.nix b/hosts/default/packages-fonts.nix index 064da23..56ee878 100644 --- a/hosts/default/packages-fonts.nix +++ b/hosts/default/packages-fonts.nix @@ -14,7 +14,6 @@ in environment.systemPackages = (with pkgs; [ # system packages: - # TODO bc baobab btrfs-progs