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