NixOS/nixpkgs — pull request #5421 by nbp (2014-12-21 13:58:11+00:00)
Title: modules: Add mkSinkUndeclaredOptions.

This option is made to create a Sink option which can accept anything and ignores everything. An error is thrown if one of the module attempt to read anything out of it. An error is also thrown by the module system if other option declarations are made either at the depth or deeper inside this option:

```
# Add systemd = mkSinkUndeclaredOptions {}; in installer/tools/tools.nix
$ nixos-option systemd
error: The option `systemd' in `/home/nicolas/nixos-dev/nixpkgs/nixos/modules/installer/tools/tools.nix' is a prefix of options in `/home/nicolas/nixos-dev/nixpkgs/nixos/modules/testing/service-runner.nix'.
```

This is convenient for cases where one person might want to add another option with an identical prefix.
This is also convenient for ignoring option which are made for another module-set (sal / NixOS / NixUP / …)

cc: @offlinehacker