From 6005f72476428ecab45fa12f6da55a86291e5d25 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 9 Jul 2021 18:26:00 +0200 Subject: workstation: Patch XTerm to set $COLORTERM While ncurses already has support for detecting direct color terminals, a lot of applications out there do not yet query terminfo but instead rely on some shady COLORTERM environment variable. While I don't really like that approach, patching XTerm to set that variable currently is better than patching all the applications to query terminfo. Signed-off-by: aszlig --- modules/user/aszlig/profiles/workstation/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix index d8f18f9f..5e1976a8 100644 --- a/modules/user/aszlig/profiles/workstation/default.nix +++ b/modules/user/aszlig/profiles/workstation/default.nix @@ -188,6 +188,10 @@ in { }; }; + nixpkgs.overlays = lib.singleton (lib.const (super: { + xterm = super.vuizvui.aszlig.xterm; + })); + users.users.aszlig = { uid = 1000; isNormalUser = true; -- cgit 1.4.1