Update install.sh

This commit is contained in:
2026-01-14 21:38:15 +00:00
parent cdba481298
commit 77974fa3d6

View File

@@ -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
}