Merge pull request #140723 from rnhmjoj/pr-fontdir-headless

nixos/fontdir: always link the font directory

Changed files
+1 -2
nixos
modules
config
fonts
+1 -2
nixos/modules/config/fonts/fontdir.nix
···
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"