How to switch xterm to kitty?

How to disable xterm and switch default terminal to Kitty? I installed the file manager yazi and tried to open it through rofi. It opened inside xterm. I need to make it so that TUI applications use kitty.

If it’s rofi launching the TUI app I think it should use the environment variable TERMINAL

You can do that through environment.sessionVariables or probably just for your user.

1 Like

Thx! My configuration.nix:

environment.sessionVariables = {
  EDITOR = "nvim";
  BROWSER = "firefox";
  TERMINAL = "kitty";
};