From c70b8e905f9f8b9c1a86e46df38083e406c7d504 Mon Sep 17 00:00:00 2001 From: shynd Date: Thu, 20 Feb 2025 00:02:36 +0100 Subject: [PATCH] auto-install script --- auto-install.sh | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/auto-install.sh b/auto-install.sh index 26a997e..f6a35df 100755 --- a/auto-install.sh +++ b/auto-install.sh @@ -98,4 +98,36 @@ fi echo "-----" printf "\n%.0s" {1..1} -# TODO \ No newline at end of file +# aylurs gtk shell v1 installation option +read -p "${CAT} do you want to add ${MAGENTA}AGS or aylur's gtk shell v1${RESET} for desktop overview like? (Y/n): " answer + +answer=${answer:-Y} + +if [[ "$answer" =~ ^[Nn]$ ]]; then + #sed -i 's|^\([[:space:]]*\)ags.url = "github:aylur/ags/v1";|\1#ags.url = "github:aylur/ags/v1";|' flake.nix + sed -i 's|^\([[:space:]]*\)ags_1|\1#ags_1|' hosts/default/packages-fonts.nix +fi + +echo "-----" +printf "\n%.0s" {1..1} + +echo "$NOTE default options are in brackets []" +echo "$NOTE just press ${MAGENTA}ENTER${RESET} to select the default" +sleep 1 + +read -rp "$CAT enter your new hostname: [ default ] " hostName +if [ -z "$hostName" ]; then + hostName="default" +fi + +echo "-----" + +# create directory for the new hostname, unless default is used +if [ "$hostName" != "default" ]; then + mkdir -p hosts/"$hostName" + cp hosts/default/*.nix hosts/"$hostName" +else + echo "default hostname selected, no extra host directories created" +fi + +echo "-----" \ No newline at end of file