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