Revert "nixos/fontconfig: fix 50-user.conf handling"

This reverts commit 8425726f86.

This should have been reverted in https://github.com/NixOS/nixpkgs/pull/95358
but I forgot about it.
This commit is contained in:
Jan Tojnar 2020-09-06 02:56:31 +02:00
parent 6eea644749
commit f0cb5c6a15
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -198,10 +198,8 @@ let
ln -s ${renderConf} $dst/10-nixos-rendering.conf
# 50-user.conf
# Since latest fontconfig looks for default files inside the package,
# we had to move this one elsewhere to be able to exclude it here.
${optionalString cfg.includeUserConf ''
ln -s ${pkg.out}/etc/fonts/conf.d.bak/50-user.conf $dst/50-user.conf
${optionalString (!cfg.includeUserConf) ''
rm $dst/50-user.conf
''}
# local.conf (indirect priority 51)