mkSinkUndeclaredOptions
lib.options.mkSinkUndeclaredOptions
Docs pulled from | This Revision | 11 minutes ago
This option accepts anything, but it does not produce any result.
This is useful for sharing a module across different module sets without having to implement similar features as long as the values of the options are not accessed.
Inputs
attrs
-
1. Function argument
Noogle detected
Implementation
The following is the current implementation of this function.
mkSinkUndeclaredOptions = attrs: mkOption ({
internal = true;
visible = false;
default = false;
description = "Sink for option definitions.";
type = mkOptionType {
name = "sink";
check = x: true;
merge = loc: defs: false;
};
apply = x: throw "Option value is not readable because the option is not declared.";
} // attrs);