updated auto-install script
This commit is contained in:
parent
56ba0383e9
commit
1a5f6d0270
|
@ -250,3 +250,35 @@ echo "-----"
|
||||||
printf "\n%.0s" {1..3}
|
printf "\n%.0s" {1..3}
|
||||||
|
|
||||||
# cloning hyprland dotiles to home folder
|
# 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
|
|
@ -14,7 +14,6 @@ in
|
||||||
|
|
||||||
environment.systemPackages = (with pkgs; [
|
environment.systemPackages = (with pkgs; [
|
||||||
# system packages:
|
# system packages:
|
||||||
# TODO
|
|
||||||
bc
|
bc
|
||||||
baobab
|
baobab
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
|
|
Loading…
Reference in New Issue