diff --git a/install.sh b/install.sh index 7fead31..521b13b 100644 --- a/install.sh +++ b/install.sh @@ -68,8 +68,17 @@ if ! command -v xz &> /dev/null; then 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 + echo "Error: Failed to download yq." >&2 + exit 1 +else + chmod +x /usr/local/bin/yq +fi + # Download and run the Nix installer (multi-user mode with daemon) -curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --daemon +curl --proto '=https' --tlsv1.2 -sSL https://nixos.org/nix/install | sh -s -- --daemon }