From 2802538dc2e2a8923e3d3cc3e144abc4e1561760 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 17 Feb 2013 22:47:08 +0100 Subject: [PATCH] modules/config/fonts.nix: export GDFONTPATH in /etc/profile Set the environment variable GDFONTPATH to the list of directories where fonts are expected to be installed. This is search path is used by same GD-based applications, such as Gnuplot. Alternatively, we could rely on fontconfig to achieve the same thing, i.e. by running for n in $(fc-list | sed -r -e 's|^([^:]+):.*$|\1|'); do echo $(dirname "$n"); done | sort | uniq to get that list at run-time, but the static approach feels more deterministic. --- modules/config/fonts.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/config/fonts.nix b/modules/config/fonts.nix index 3516ed75ab6..4174a889a1d 100644 --- a/modules/config/fonts.nix +++ b/modules/config/fonts.nix @@ -171,6 +171,7 @@ in environment.shellInit = '' export FONTCONFIG_FILE=/etc/fonts/fonts.conf + export GDFONTPATH=${concatStringsSep ":" config.fonts.fonts} ''; environment.systemPackages =