aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/modules/config/fonts/corefonts.nix
blob: b9f69879a10365bf9cabbfccc062e519396436b0 (plain)
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
34
35
36
# This module is deprecated, since you can just say ‘fonts.fonts = [
# pkgs.corefonts ];’ instead.

{ config, lib, pkgs, ... }:

with lib;

{

  options = {

    fonts = {

      enableCoreFonts = mkOption {
        visible = false;
        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.fonts = [ pkgs.corefonts ];

  };

}