at 23.11-beta 374 B view raw
1{ lib, ... }: 2let 3 deathtrapArgs = lib.mapAttrs 4 (k: _: throw "The module system is too strict, accessing an unused option's ${k} mkOption-attribute.") 5 (lib.functionArgs lib.mkOption); 6in 7{ 8 options.value = lib.mkOption { 9 type = lib.types.attrsOf lib.types.str; 10 default = {}; 11 }; 12 options.testing-laziness-so-don't-read-me = lib.mkOption deathtrapArgs; 13}