forked from extern/zaneyos
Fix install script
This commit is contained in:
parent
662271c21d
commit
0ab358e325
@ -24,22 +24,7 @@ echo "Cloning & Entering ZaneyOS Repository"
|
|||||||
git clone https://gitlab.com/zaney/zaneyos.git
|
git clone https://gitlab.com/zaney/zaneyos.git
|
||||||
cd zaneyos
|
cd zaneyos
|
||||||
|
|
||||||
read -p "Use ZaneyOS Stable Branch? (yYyes) [yes]: " stableBranch
|
echo "-----"
|
||||||
stableBranch=${stableBranch:-yes} # Set default value to "yes" if user_input is empty
|
|
||||||
|
|
||||||
# Check user's response
|
|
||||||
if [ "$stableBranch" == "yes" ]; then
|
|
||||||
echo "Switching To Stable Branch"
|
|
||||||
git switch stable-1.0
|
|
||||||
elif [ "$stableBranch" == "y" ]; then
|
|
||||||
echo "Switching To Stable Branch"
|
|
||||||
git switch stable-1.0
|
|
||||||
elif [ "$stableBranch" == "Y" ]; then
|
|
||||||
echo "Switching To Stable Branch"
|
|
||||||
git switch stable-1.0
|
|
||||||
else
|
|
||||||
echo "Staying On Main, The Unstable Branch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
read -p "Enter Your New Username: " userName
|
read -p "Enter Your New Username: " userName
|
||||||
sed -i "/^\s*username[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$userName\"/" ./options.nix
|
sed -i "/^\s*username[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$userName\"/" ./options.nix
|
||||||
@ -90,7 +75,11 @@ echo "Valid options include amd, intel, nvidia, vm, intel-nvidia"
|
|||||||
read -p "Enter Your GPU Type : " gpuType
|
read -p "Enter Your GPU Type : " gpuType
|
||||||
sed -i "/^\s*gpuType[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$gpuType\"/" ./options.nix
|
sed -i "/^\s*gpuType[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$gpuType\"/" ./options.nix
|
||||||
|
|
||||||
|
echo "Generating The Hardware Configuration"
|
||||||
nixos-generate-config --show-hardware-config > hardware.nix
|
nixos-generate-config --show-hardware-config > hardware.nix
|
||||||
|
|
||||||
|
echo "-----"
|
||||||
|
|
||||||
|
echo "Now Going To Build ZaneyOS, 🤞"
|
||||||
NIX_CONFIG="experimental-features = nix-command flakes"
|
NIX_CONFIG="experimental-features = nix-command flakes"
|
||||||
sudo nixos-rebuild switch --flake .#$hostName
|
sudo nixos-rebuild switch --flake .#$hostName
|
||||||
|
Loading…
Reference in New Issue
Block a user