Skip to content
Jan Schmitt edited this page Dec 14, 2022 · 6 revisions

If you encounter errors during activation like tput: unknown terminal "xterm-kitty" try it from a different terminal or use

TERM=xterm-256color sudo /nix/var/nix/profiles/system/activate

to mitigate that temporarily.

A more suited and permanent solution is to install a more recent ncurses which ships with an updated terminfo db.

Another workaround is to put the following snippet into your darwin-configuration.nix:

  environment.variables = {
    TERMINFO_DIRS = "${pkgs.kitty.terminfo.outPath}/share/terminfo";
  };

see https://github.com/nix-community/home-manager/issues/423 for more details.

Clone this wiki locally