diff --git a/system/fonts.nix b/system/fonts.nix index f63735c698d..16b37b251a0 100644 --- a/system/fonts.nix +++ b/system/fonts.nix @@ -13,13 +13,14 @@ pkgs.xorg.fontbhttf pkgs.xorg.fontbhlucidatypewriter100dpi pkgs.ttf_bitstream_vera - pkgs.corefonts pkgs.freefont_ttf pkgs.xorg.fontbh100dpi pkgs.xorg.fontmiscmisc pkgs.xorg.fontcursormisc ] +++ (pkgs.lib.optional (config.fonts.enableCoreFonts) pkgs.corefonts) + ++ pkgs.lib.optional (config.fonts.enableGhostscriptFonts) "${pkgs.ghostscript}/share/ghostscript/fonts" ++ ((config.fonts.extraFonts) pkgs) diff --git a/system/options.nix b/system/options.nix index 98362e68182..414bd90939b 100644 --- a/system/options.nix +++ b/system/options.nix @@ -2050,6 +2050,13 @@ root ALL=(ALL) SETENV: ALL "; }; + enableCoreFonts = mkOption { + default = true; + description = " + Whether to include MS Core Fonts (redistributable, but only verbatim). + "; + }; + };