about summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-03-21 14:39:19 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-03-21 14:41:22 +0100
commit1eb627c4cf62f50b647d2bf287d1ea97e326539f (patch)
tree7b46b713b0304674824923654b1a39d91611d7f9 /lib/modules.nix
parentca8fa3bb6e2c924ffcf18843268df37c7871308d (diff)
lib.mkRenamedOptionModuleWith: Remove warnWhenRead
Let's keep things simple and not poke holes in the
improved migration process.
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 0c9c88d2b6139..093a901ff3d63 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -916,19 +916,11 @@ rec {
     */
     sinceRelease,
 
-    /*
-      Options intended for reading by user modules/configuration should set this
-      to false.
-
-      Usually the user modules don't read the option and we want to hold nixpkgs
-      itself to a high standard immediately.
-      */
-    warnWhenRead ? true
   }: doRename {
     inherit from to;
     visible = false;
     warn = lib.isInOldestRelease sinceRelease;
-    use = lib.warnIf (warnWhenRead || lib.isInOldestRelease sinceRelease)
+    use = lib.warnIf (lib.isInOldestRelease sinceRelease)
       "Obsolete option `${showOption from}' is used. It was renamed to `${showOption to}'.";
   };