mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
e6b5c0121f
You can now just set fonts.fonts, which will be merged with the default value unless you use mkOverride.
33 lines
543 B
Nix
33 lines
543 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with 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.fonts = [ pkgs.corefonts ];
|
|
|
|
};
|
|
|
|
}
|