From 90fd4db77d99275ccb00b0e2a22a49af1ef5fb70 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sat, 30 Mar 2024 13:13:21 -0400 Subject: [PATCH] home: fix terminfo on standalone --- home/profile/base.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/profile/base.nix b/home/profile/base.nix index c18c8ba..e852228 100644 --- a/home/profile/base.nix +++ b/home/profile/base.nix @@ -16,6 +16,16 @@ in config = lib.mkIf cfg.enable { 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 home.shellAliases = { @@ -109,7 +119,12 @@ in # for icat on all systems kitty.kitten + + # terminfo (just the ones i'm likely to use) kitty.terminfo + alacritty.terminfo + termite.terminfo + tmux.terminfo # pretty hyfetch