2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-06-27 13:12:45 +02:00
|
|
|
{
|
|
|
|
options = {
|
2024-08-27 20:42:47 +02:00
|
|
|
fonts.enableGhostscriptFonts = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2023-07-19 13:43:54 +02:00
|
|
|
default = false;
|
2024-04-13 14:54:15 +02:00
|
|
|
description = ''
|
2023-07-19 13:43:54 +02:00
|
|
|
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.
|
|
|
|
'';
|
2013-06-27 13:12:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2024-08-27 20:42:47 +02:00
|
|
|
config = lib.mkIf config.fonts.enableGhostscriptFonts {
|
2024-05-28 11:50:34 +08:00
|
|
|
fonts.packages = [ pkgs.ghostscript.fonts ];
|
2013-06-27 13:12:45 +02:00
|
|
|
};
|
|
|
|
}
|