JRuby & Ruby Collision Error

I’d like to install both jruby and ruby on Mac OS Ventura 13.3.1 with Nix 2.10.3.

To that end, I’ve added the (home-manager) flake setup noted below. In spite of the ignoreCollisions override, I’m currently receiving a collision error for the irb files included in both ruby packages. Suggestions on how to resolve this collision are much appreciated. Thanks!

{ config, pkgs, ... }:
   jruby = pkgs.jruby.overrideAttrs
     (finalAttrs: previousAttrs: { ignoreCollisions = true; });
   rb = pkgs.ruby_3_1.overrideAttrs
     (finalAttrs: previousAttrs: { ignoreCollisions = true; });
in {
  home.packages = with pkgs; [

Install neither on the system but use project specific devshells.

If you do not want to use them use tools like rbenv, rvm or ASDF.