2021-12-19 01:06:50 +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-08-20 17:08:02 +00:00
|
|
|
options.nest.foo = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
2021-12-19 01:06:50 +00:00
|
|
|
options.nest.unused = lib.mkOption deathtrapArgs;
|
2020-08-20 17:08:02 +00:00
|
|
|
config.nest.bar = "bar";
|
|
|
|
}
|