summary refs log tree commit diff
path: root/nixos/modules/config/fonts/ghostscript.nix
blob: c41fcdaaa329d525f71b5eb99c8ed040500138d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, ... }:

with lib;

{
  options = {
    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.
      '';
    };

  };

  config = mkIf config.fonts.enableGhostscriptFonts {
    fonts.packages = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];
  };
}