diff --git a/pkgs/servers/x11/xquartz/default.nix b/pkgs/servers/x11/xquartz/default.nix index 3c2cf20eba5..cdb2122a612 100644 --- a/pkgs/servers/x11/xquartz/default.nix +++ b/pkgs/servers/x11/xquartz/default.nix @@ -2,6 +2,8 @@ , quartz-wm, fontconfig, xlsfonts, xfontsel , ttf_bitstream_vera, freefont_ttf, liberation_ttf , shell ? "${bashInteractive}/bin/bash" +, unfreeFonts ? false +, extraFontDirs ? [] }: # ------------ @@ -60,15 +62,16 @@ let sudo launchctl load -w /Library/LaunchDaemons/$daemonName ''; fontDirs = [ - xorg.fontbhlucidatypewriter100dpi - xorg.fontbhlucidatypewriter75dpi ttf_bitstream_vera freefont_ttf liberation_ttf - xorg.fontbh100dpi xorg.fontmiscmisc xorg.fontcursormisc - ]; + ] ++ lib.optionals unfreeFonts [ + xorg.fontbhlucidatypewriter100dpi + xorg.fontbhlucidatypewriter75dpi + xorg.fontbh100dpi + ] ++ extraFontDirs; fontsConf = makeFontsConf { fontDirectories = fontDirs ++ [ "/Library/Fonts"