summary refs log tree commit diff
path: root/nixos/modules/config/fonts/corefonts.nix
blob: 7de95200cfa90b03d70b51f48c1c04d74b9c4ca0 (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
{ config, pkgs, ... }:

with pkgs.lib;

{

  options = {

    fonts = {

      enableCoreFonts = mkOption {
        default = false;
        description = ''
          Whether to include Microsoft's proprietary Core Fonts.  These fonts
          are redistributable, but only verbatim, among other restrictions.
          See <link xlink:href="http://corefonts.sourceforge.net/eula.htm"/>
          for details.
       '';
      };

    };

  };


  config = mkIf config.fonts.enableCoreFonts {

    fonts.extraFonts = [ pkgs.corefonts ];

  };

}