1{
2 config,
3 lib,
4 pkgs,
5 ...
6}:
7{
8 options = {
9 fonts.enableGhostscriptFonts = lib.mkOption {
10 type = lib.types.bool;
11 default = false;
12 description = ''
13 Whether to add the fonts provided by Ghostscript (such as
14 various URW fonts and the “Base-14” Postscript fonts) to the
15 list of system fonts, making them available to X11
16 applications.
17 '';
18 };
19
20 };
21
22 config = lib.mkIf config.fonts.enableGhostscriptFonts {
23 fonts.packages = [ pkgs.ghostscript.fonts ];
24 };
25}