query
On this page

mkSinkUndeclaredOptions

lib.mkSinkUndeclaredOptions

Docs pulled from | This Revision | 10 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

(lib.options.mkSinkUndeclaredOptions)

Noogle detected

Aliases

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);