about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/config/fonts/corefonts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/modules/config/fonts/corefonts.nix')
-rw-r--r--nixpkgs/nixos/modules/config/fonts/corefonts.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/nixos/modules/config/fonts/corefonts.nix b/nixpkgs/nixos/modules/config/fonts/corefonts.nix
new file mode 100644
index 000000000000..b9f69879a103
--- /dev/null
+++ b/nixpkgs/nixos/modules/config/fonts/corefonts.nix
@@ -0,0 +1,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 ];
+
+  };
+
+}