From ec3d2510c5f9045308826a11b36b1d4f4987cbbe Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 17 Jan 2007 17:44:57 +0000 Subject: [PATCH] * Quick hack to enable fontconfig to find fonts. We look in the default profile, in the user's profile, and in ~/.fonts. svn path=/nixos/trunk/; revision=7709 --- system/etc.nix | 6 ++++++ system/etc/fonts/fonts.conf | 10 ++++++++++ system/etc/profile.sh | 1 + 3 files changed, 17 insertions(+) create mode 100644 system/etc/fonts/fonts.conf diff --git a/system/etc.nix b/system/etc.nix index da04d8d961e..917491fcb1d 100644 --- a/system/etc.nix +++ b/system/etc.nix @@ -77,6 +77,12 @@ import ../helpers/make-etc.nix { target = "profile"; } + { # Configuration file for fontconfig used to locate + # (X11) client-rendered fonts. + source = ./etc/fonts/fonts.conf; + target = "fonts/fonts.conf"; + } + ] # LDAP configuration. diff --git a/system/etc/fonts/fonts.conf b/system/etc/fonts/fonts.conf new file mode 100644 index 00000000000..ff4a608e928 --- /dev/null +++ b/system/etc/fonts/fonts.conf @@ -0,0 +1,10 @@ + + + + + + /nix/var/nix/profiles/default/lib/X11/fonts + ~/.nix-profile/lib/X11/fonts + ~/.fonts + + diff --git a/system/etc/profile.sh b/system/etc/profile.sh index f2b8d3c8dcf..738eb056ea7 100644 --- a/system/etc/profile.sh +++ b/system/etc/profile.sh @@ -3,6 +3,7 @@ export MODULE_DIR=@kernel@/lib/modules export NIX_CONF_DIR=/nix/etc/nix export PAGER=less export TZ=@timeZone@ +export FONTCONFIG_FILE=/etc/fonts/fonts.conf PROMPT_COLOR="1;31m" PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]$\[\033[0m\] "