Updated installer with fixes

This commit is contained in:
Tyler Kelley 2024-05-19 13:13:37 -05:00
parent be9add0954
commit db8ee90d35

View File

@ -60,11 +60,14 @@ git clone https://gitlab.com/zaney/zaneyos.git
cd zaneyos || exit
mkdir hosts/"$hostName"
cp hosts/default/*.nix hosts/"$hostName"
git config --global user.name "installer"
git config --global user.email "installer@gmail.com"
git add .
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
echo "-----"
installusername=$("$USER")
installusername=$($USER)
sed -i "/^\s*username[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$installusername\"/" ./flake.nix
echo "-----"