{ pkgs, ... }: {
  programs.pyenv = {
    enable = true;
    enableZshIntegration = true;
  };

  programs.rbenv = {
    enable = true;
    enableZshIntegration = true;
  };

  home.packages = [ pkgs.fnm ];

  programs.zsh.initExtraBeforeCompInit = ''
    # firenvim has no access to brew installed stuff
    eval "$(pyenv virtualenv-init - 2>/dev/null 1>&2)"
    eval "$(fnm env --use-on-cd)"
  '';
}
