diff options
author | Eric Sagnes <eric.sagnes@gmail.com> | 2016-09-07 10:03:32 +0900 |
---|---|---|
committer | Nicolas B. Pierron <nicolas.b.pierron@gmail.com> | 2016-11-06 00:05:58 +0100 |
commit | e14de56613fc8e42fb6249031efe9e7abbb65286 (patch) | |
tree | 4a0d884bf0b5698cf42705ff25c5806ace87951f /lib/options.nix | |
parent | d10356b82558fe50e1ad0fa1fb5e151c43ed3e0a (diff) |
module system: extensible option types
Diffstat (limited to 'lib/options.nix')
-rw-r--r-- | lib/options.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index 444ec37e6eaf..2092b65bbc3a 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -92,7 +92,7 @@ rec { internal = opt.internal or false; visible = opt.visible or true; readOnly = opt.readOnly or false; - type = opt.type.name or null; + type = opt.type.description or null; } // (if opt ? example then { example = scrubOptionValue opt.example; } else {}) // (if opt ? default then { default = scrubOptionValue opt.default; } else {}) |