A problem I had with this module is that I have this set up with home-manager and if I setup home-manager on a machine it gives some weird errors when doing remote builds or nix-copy-closures on them. Weirdly enough the error says about an invalid value returned by the builder and funnily enough it's the color sequence of my colorscheme.
It seems that these extra echos are breaking Nix so I had to find a way to not run these echos if running in an SSH session. Unfortunately, it's less convenient because I have to initiate a bash session in an environment that SSH_SESSION is unset to apply the colors.
Then I copied my original bashrc to another file and added a env | sort > /tmp/somefile.txt and sourced the original bashrc, started a bash session, then moved that txt file to another name, then ran nix-copy-closure to check what is different between these SSH sessions and found out that Nix, when logging in sets up TERM to dumb and just added a check in the script to no-op if TERM is dumb.
Now it's fixed and colorful, well, classic-dark is not so colorful. But it's fixed.
A problem I had with this module is that I have this set up with home-manager and if I setup home-manager on a machine it gives some weird errors when doing remote builds or nix-copy-closures on them. Weirdly enough the error says about an invalid value returned by the builder and funnily enough it's the color sequence of my colorscheme.
It seems that these extra echos are breaking Nix so I had to find a way to not run these echos if running in an SSH session. Unfortunately, it's less convenient because I have to initiate a bash session in an environment that
SSH_SESSION
is unset to apply the colors.Then I copied my original bashrc to another file and added a
env | sort > /tmp/somefile.txt
and sourced the original bashrc, started a bash session, then moved that txt file to another name, then ran nix-copy-closure to check what is different between these SSH sessions and found out that Nix, when logging in sets up TERM todumb
and just added a check in the script to no-op if TERM isdumb
.Now it's fixed and colorful, well,
classic-dark
is not so colorful. But it's fixed.