at 17.09-beta 694 B view raw
1# This module manages the terminfo database 2# and its integration in the system. 3{ config, ... }: 4{ 5 config = { 6 7 environment.pathsToLink = [ 8 "/share/terminfo" 9 ]; 10 11 environment.etc."terminfo" = { 12 source = "${config.system.path}/share/terminfo"; 13 }; 14 15 environment.profileRelativeEnvVars = { 16 TERMINFO_DIRS = [ "/share/terminfo" ]; 17 }; 18 19 environment.extraInit = '' 20 21 # reset TERM with new TERMINFO available (if any) 22 export TERM=$TERM 23 ''; 24 25 security.sudo.extraConfig = '' 26 27 # Keep terminfo database for root and %wheel. 28 Defaults:root,%wheel env_keep+=TERMINFO_DIRS 29 Defaults:root,%wheel env_keep+=TERMINFO 30 ''; 31 32 }; 33}