* 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
This commit is contained in:
parent
b53d7f2c61
commit
ec3d2510c5
@ -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.
|
||||
|
10
system/etc/fonts/fonts.conf
Normal file
10
system/etc/fonts/fonts.conf
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
|
||||
<fontconfig>
|
||||
|
||||
<dir>/nix/var/nix/profiles/default/lib/X11/fonts</dir>
|
||||
<dir>~/.nix-profile/lib/X11/fonts</dir>
|
||||
<dir>~/.fonts</dir>
|
||||
|
||||
</fontconfig>
|
@ -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\] "
|
||||
|
Loading…
Reference in New Issue
Block a user