From 3485204442e6f97ee13bfbc41a8b244433309bce Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 31 Oct 2019 10:19:04 -0400 Subject: [PATCH] nixos/corefonts: remove 4 years ago in 7edb27b7af6ebff7e35207f7fcf16e0e2bd8884a the option was made hidden. We should just remove the module and use mkRemovedOptionModule. --- nixos/modules/config/fonts/corefonts.nix | 36 ------------------------ nixos/modules/module-list.nix | 1 - nixos/modules/rename.nix | 1 + 3 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 nixos/modules/config/fonts/corefonts.nix diff --git a/nixos/modules/config/fonts/corefonts.nix b/nixos/modules/config/fonts/corefonts.nix deleted file mode 100644 index b9f69879a103..000000000000 --- a/nixos/modules/config/fonts/corefonts.nix +++ /dev/null @@ -1,36 +0,0 @@ -# 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 - for details. - ''; - }; - - }; - - }; - - - config = mkIf config.fonts.enableCoreFonts { - - fonts.fonts = [ pkgs.corefonts ]; - - }; - -} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 24912c27245c..2ad6188cc259 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1,6 +1,5 @@ [ ./config/debug-info.nix - ./config/fonts/corefonts.nix ./config/fonts/fontconfig.nix ./config/fonts/fontconfig-penultimate.nix ./config/fonts/fontconfig-ultimate.nix diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index 886e2e83ba62..6c6a5915426b 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -234,6 +234,7 @@ with lib; (mkRemovedOptionModule [ "services" "mysql" "rootPassword" ] "Use socket authentication or set the password outside of the nix store.") (mkRemovedOptionModule [ "services" "zabbixServer" "dbPassword" ] "Use services.zabbixServer.database.passwordFile instead.") (mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.") + (mkRemovedOptionModule [ "fonts" "enableCoreFonts" ] "Use fonts.fonts = [ pkgs.corefonts ]; instead.") # ZSH (mkRenamedOptionModule [ "programs" "zsh" "enableSyntaxHighlighting" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])