* Generate the list of fonts in a Nix expression.
svn path=/nixos/trunk/; revision=7744
This commit is contained in:
parent
ec3d2510c5
commit
6db2c1814e
@ -79,7 +79,18 @@ import ../helpers/make-etc.nix {
|
|||||||
|
|
||||||
{ # Configuration file for fontconfig used to locate
|
{ # Configuration file for fontconfig used to locate
|
||||||
# (X11) client-rendered fonts.
|
# (X11) client-rendered fonts.
|
||||||
source = ./etc/fonts/fonts.conf;
|
source = pkgs.substituteAll {
|
||||||
|
src = ./etc/fonts/fonts.conf;
|
||||||
|
fontDirectories = map (dir: "<dir>${dir}</dir>")
|
||||||
|
[ # Search for fonts in...
|
||||||
|
# - the user's .fonts directory
|
||||||
|
"~/.fonts"
|
||||||
|
# - the user's current profile
|
||||||
|
"~/.nix-profile/lib/X11/fonts"
|
||||||
|
# - the default profile
|
||||||
|
"/nix/var/nix/profiles/default/lib/X11/fonts"
|
||||||
|
];
|
||||||
|
};
|
||||||
target = "fonts/fonts.conf";
|
target = "fonts/fonts.conf";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
|
|
||||||
<dir>/nix/var/nix/profiles/default/lib/X11/fonts</dir>
|
@fontDirectories@
|
||||||
<dir>~/.nix-profile/lib/X11/fonts</dir>
|
|
||||||
<dir>~/.fonts</dir>
|
|
||||||
|
|
||||||
</fontconfig>
|
</fontconfig>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user