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