at 18.09-beta 1.1 kB view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5{ 6 7 options = { 8 9 fonts = { 10 11 # TODO: find another name for it. 12 fonts = mkOption { 13 type = types.listOf types.path; 14 default = []; 15 example = literalExample "[ pkgs.dejavu_fonts ]"; 16 description = "List of primary font paths."; 17 }; 18 19 enableDefaultFonts = mkOption { 20 type = types.bool; 21 default = false; 22 description = '' 23 Enable a basic set of fonts providing several font styles 24 and families and reasonable coverage of Unicode. 25 ''; 26 }; 27 28 }; 29 30 }; 31 32 config = { 33 34 fonts.fonts = mkIf config.fonts.enableDefaultFonts 35 [ 36 pkgs.xorg.fontbhlucidatypewriter100dpi 37 pkgs.xorg.fontbhlucidatypewriter75dpi 38 pkgs.dejavu_fonts 39 pkgs.freefont_ttf 40 pkgs.gyre-fonts # TrueType substitutes for standard PostScript fonts 41 pkgs.liberation_ttf 42 pkgs.xorg.fontbh100dpi 43 pkgs.xorg.fontmiscmisc 44 pkgs.xorg.fontcursormisc 45 pkgs.unifont 46 ]; 47 48 }; 49 50}