1
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

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";