Update install.sh
This commit is contained in:
19
install.sh
19
install.sh
@@ -52,22 +52,6 @@ if ! command -v curl &> /dev/null; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install xz-utils if not present (required for decompressing Nix tarball)
|
||||
if ! command -v xz &> /dev/null; then
|
||||
echo "Installing xz-utils..."
|
||||
if command -v apt-get &> /dev/null; then
|
||||
sudo apt-get update && sudo apt-get install -y xz-utils
|
||||
elif command -v dnf &> /dev/null; then
|
||||
sudo dnf install -y xz
|
||||
elif command -v yum &> /dev/null; then
|
||||
sudo yum install -y xz
|
||||
elif command -v pacman &> /dev/null; then
|
||||
sudo pacman -S --noconfirm xz
|
||||
else
|
||||
fatal "Please install xz-utils manually for your distribution"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install yq (required for config and templates)
|
||||
info "Installing yq..."
|
||||
if ! curl -sSL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64; then
|
||||
@@ -77,9 +61,6 @@ else
|
||||
chmod +x /usr/local/bin/yq
|
||||
fi
|
||||
|
||||
# Download and run the Nix installer (multi-user mode with daemon)
|
||||
curl --proto '=https' --tlsv1.2 -sSL https://nixos.org/nix/install | sh -s -- --daemon
|
||||
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
Reference in New Issue
Block a user