summary refs log tree commit diff
path: root/nixos/modules/config/fonts/ghostscript.nix
blob: b1dd81bf2d2ea80da0cb0504051f541de3159fe0 (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
24
25
26
27
28
29
30
31
32
33
{ config, lib, pkgs, ... }:

with lib;

{

  options = {

    fonts = {

      enableGhostscriptFonts = mkOption {
        type = types.bool;
        default = false;
        description = ''
          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.fonts = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];

  };

}