at 22.05-pre 590 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5{ 6 7 options = { 8 9 fonts = { 10 11 enableGhostscriptFonts = mkOption { 12 type = types.bool; 13 default = false; 14 description = '' 15 Whether to add the fonts provided by Ghostscript (such as 16 various URW fonts and the Base-14 Postscript fonts) to the 17 list of system fonts, making them available to X11 18 applications. 19 ''; 20 }; 21 22 }; 23 24 }; 25 26 27 config = mkIf config.fonts.enableGhostscriptFonts { 28 29 fonts.fonts = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ]; 30 31 }; 32 33}