1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

Merge pull request #533 from Enzime/terminfo

environment: support installing terminfo files
This commit is contained in:
Domen Kožar 2022-09-20 13:44:48 +01:00 committed by GitHub
commit be8e20e7d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";
};