query
On this page

mkRemovedOptionModule

lib.modules.mkRemovedOptionModule

Docs pulled from | This Revision | 13 minutes ago


Return a module that causes a warning to be shown if the specified option is defined. For example,

mkRemovedOptionModule [ "boot" "loader" "grub" "bootDevice" ] ""

causes a assertion if the user defines boot.loader.grub.bootDevice.

replacementInstructions is a string that provides instructions on how to achieve the same functionality without the removed option, or alternatively a reasoning why the functionality is not needed. replacementInstructions SHOULD be provided!

Inputs

optionName

1. Function argument

replacementInstructions

2. Function argument


Noogle also knows

Aliases