home: fix terminfo on standalone

This commit is contained in:
NullBite 2024-03-30 13:13:21 -04:00
parent cf9933a1c0
commit 90fd4db77d
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -16,6 +16,16 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
nixfiles.programs.comma.enable = true; nixfiles.programs.comma.enable = true;
# configure terminfo since we're probably standalone
home.sessionVariables = lib.mkIf (!(osConfig ? environment)) {
TERMINFO_DIRS = let
terminfo-dirs = [
"${config.home.profileDirectory}/share/terminfo"
"/usr/share/terminfo"
];
in builtins.concatStringSep ":" terminfo-dirs;
};
# TODO move this stuff to a zsh.nix or something; this is just a quick fix so home.sessionVariables works # TODO move this stuff to a zsh.nix or something; this is just a quick fix so home.sessionVariables works
home.shellAliases = { home.shellAliases = {
@ -109,7 +119,12 @@ in
# for icat on all systems # for icat on all systems
kitty.kitten kitty.kitten
# terminfo (just the ones i'm likely to use)
kitty.terminfo kitty.terminfo
alacritty.terminfo
termite.terminfo
tmux.terminfo
# pretty # pretty
hyfetch hyfetch