nixos/fontdir: always link the font directory

This fixes the fonts directory availability when not running an xserver,
such as headless machines.
This commit is contained in:
rnhmjoj 2021-10-06 08:52:39 +02:00
parent ec2383ef4f
commit a27dc95e72
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

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"