nixos/fontdir: always link the font directory

This fixes the fonts directory availability when not running an xserver,
such as headless machines.

(cherry picked from commit a27dc95e72b5671df59e04853aa48a50d65f2031)
This commit is contained in:
rnhmjoj 2021-10-06 08:52:39 +02:00 committed by github-actions[bot]
parent b31ab18db6
commit 36d4e53859

View File

@ -50,9 +50,8 @@ in
config = mkIf cfg.enable {
# This is enough to make a symlink because the xserver
# module already links all /share/X11 paths.
environment.systemPackages = [ x11Fonts ];
environment.pathsToLink = [ "/share/X11/fonts" ];
services.xserver.filesSection = ''
FontPath "${x11Fonts}/share/X11/fonts"