Set env to fix manpages with bat.

This commit is contained in:
Kevin Baensch 2024-02-21 21:24:01 +01:00
parent 892d7d9b1f
commit aa05963032
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -15,6 +15,9 @@ with lib; {
};
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
# Bat breaks manpages
# https://github.com/sharkdp/bat/issues/2563
MANROFFOPT = "-c";
LC_CTYPE = "zh_CN.UTF-8";
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
MPV_HOME = "/etc/mpv";