2021-11-03 18:19:41 +00:00
|
|
|
{ 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
|
|
|
|
{
|
2020-03-22 19:55:54 +00:00
|
|
|
options.nest.foo = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2021-11-03 18:19:41 +00:00
|
|
|
options.nest.unused = lib.mkOption deathtrapArgs;
|
2020-03-22 19:55:54 +00:00
|
|
|
config.nest.bar = "bar";
|
|
|
|
}
|