1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 12:19:09 +00:00

environment: support installing terminfo files

This commit is contained in:
Michael Hoang 2022-09-20 21:56:15 +10:00
parent 14a12e9ee7
commit f12f0f3095

View file

@ -159,7 +159,11 @@ in
[ "/run/current-system/sw" "/nix/var/nix/profiles/default" ]
];
environment.pathsToLink = [ "/bin" "/share/locale" ];
environment.pathsToLink = [
"/bin"
"/share/locale"
"/share/terminfo"
];
environment.extraInit = ''
# reset TERM with new TERMINFO available (if any)
@ -173,6 +177,7 @@ in
{
XDG_CONFIG_DIRS = map (path: path + "/etc/xdg") cfg.profiles;
XDG_DATA_DIRS = map (path: path + "/share") cfg.profiles;
TERMINFO_DIRS = map (path: path + "/share/terminfo") cfg.profiles;
EDITOR = mkDefault "nano";
PAGER = mkDefault "less -R";
};