From a27dc95e72b5671df59e04853aa48a50d65f2031 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 6 Oct 2021 08:52:39 +0200 Subject: [PATCH] nixos/fontdir: always link the font directory This fixes the fonts directory availability when not running an xserver, such as headless machines. --- nixos/modules/config/fonts/fontdir.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/config/fonts/fontdir.nix b/nixos/modules/config/fonts/fontdir.nix index c4bd3a077d33..db4b6c638ab4 100644 --- a/nixos/modules/config/fonts/fontdir.nix +++ b/nixos/modules/config/fonts/fontdir.nix @@ -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"