xdummy: make unfree fonts optional; see also #99136
This commit is contained in:
parent
6353c2dee2
commit
30ec2df88b
|
@ -1,4 +1,5 @@
|
|||
{ writeText, writeScriptBin, xorg, xkeyboard_config, runtimeShell }:
|
||||
{ writeText, writeScriptBin, xorg, xkeyboard_config, runtimeShell
|
||||
, unfreeFonts ? false, lib}:
|
||||
|
||||
let
|
||||
xorgConfig = writeText "dummy-xorg.conf" ''
|
||||
|
@ -23,11 +24,13 @@ let
|
|||
XkbDir "${xkeyboard_config}/share/X11/xkb"
|
||||
FontPath "${xorg.fontadobe75dpi}/lib/X11/fonts/75dpi"
|
||||
FontPath "${xorg.fontadobe100dpi}/lib/X11/fonts/100dpi"
|
||||
FontPath "${xorg.fontmiscmisc}/lib/X11/fonts/misc"
|
||||
FontPath "${xorg.fontcursormisc}/lib/X11/fonts/misc"
|
||||
${lib.optionalString unfreeFonts ''
|
||||
FontPath "${xorg.fontbhlucidatypewriter75dpi}/lib/X11/fonts/75dpi"
|
||||
FontPath "${xorg.fontbhlucidatypewriter100dpi}/lib/X11/fonts/100dpi"
|
||||
FontPath "${xorg.fontbh100dpi}/lib/X11/fonts/100dpi"
|
||||
FontPath "${xorg.fontmiscmisc}/lib/X11/fonts/misc"
|
||||
FontPath "${xorg.fontcursormisc}/lib/X11/fonts/misc"
|
||||
''}
|
||||
EndSection
|
||||
|
||||
Section "Module"
|
||||
|
|
Loading…
Reference in New Issue