Disabling colors for `nix log` output

Is there a way to disable ANSI color codes in the output you get when using nix log?

this can up on nixos discord , I couldn’t find any arg that disable colour output.

User: zeroin said that they worked around it by using https://github.com/andre-simon/ansifilter

Exporting the NO_COLOR environment variable should do it.

1 Like

Just tried it out. It should have an affect on some command apparently but nix log remains coloured for me.

I created a PR to address this. https://github.com/NixOS/nix/pull/6911

1 Like
Hosted by Flying Circus.