2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2023-08-04 22:07:22 +00:00
|
|
|
fonts.enableGhostscriptFonts = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = lib.mdDoc ''
|
|
|
|
Whether to add the fonts provided by Ghostscript (such as
|
|
|
|
various URW fonts and the “Base-14” Postscript fonts) to the
|
|
|
|
list of system fonts, making them available to X11
|
|
|
|
applications.
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.fonts.enableGhostscriptFonts {
|
2023-08-04 22:07:22 +00:00
|
|
|
fonts.packages = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|