summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2022-09-20 21:56:15 +1000
committerMichael Hoang <enzime@users.noreply.github.com>2022-09-20 21:57:53 +1000
commitf12f0f3095b0e641cb5b737bd9f4c6cef3dfb73a (patch)
treee9559ff68e21f69adaf1e878804d20df3dbd6212 /modules
parent14a12e9ee72215b5f1e7dcbbff52e21a2e1d688c (diff)
environment: support installing terminfo files
Diffstat (limited to 'modules')
-rw-r--r--modules/environment/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix
index aa713f6..28e33ca 100644
--- a/modules/environment/default.nix
+++ b/modules/environment/default.nix
@@ -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";
};