mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
e8d61a25fc
Doesn't seem to have been a problem actually, but now it won't regress.
14 lines
368 B
Nix
14 lines
368 B
Nix
{ lib, ... }:
|
|
let
|
|
deathtrapArgs = lib.mapAttrs
|
|
(k: _: throw "The module system is too strict, accessing an unused option's ${k} mkOption-attribute.")
|
|
(lib.functionArgs lib.mkOption);
|
|
in
|
|
{
|
|
options.nest.foo = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
options.nest.unused = lib.mkOption deathtrapArgs;
|
|
config.nest.bar = "bar";
|
|
}
|