auto-install script
This commit is contained in:
parent
13d1261689
commit
c70b8e905f
|
@ -98,4 +98,36 @@ fi
|
||||||
echo "-----"
|
echo "-----"
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# TODO
|
# 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 "-----"
|
Loading…
Reference in New Issue