diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-03-21 14:39:19 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-03-21 14:41:22 +0100 |
commit | 1eb627c4cf62f50b647d2bf287d1ea97e326539f (patch) | |
tree | 7b46b713b0304674824923654b1a39d91611d7f9 /lib/modules.nix | |
parent | ca8fa3bb6e2c924ffcf18843268df37c7871308d (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.nix | 10 |
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}'."; }; |