lib/types: Fix type description of bool enum values

Previously bool values would show as <bool>
wip/yesman
Silvan Mosberger 4 years ago
parent 1063be86e9
commit de71ca2ebc
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D
  1. 1
      lib/types.nix

@ -499,6 +499,7 @@ rec {
show = v:
if builtins.isString v then ''"${v}"''
else if builtins.isInt v then builtins.toString v
else if builtins.isBool v then if v then "true" else "false"
else ''<${builtins.typeOf v}>'';
in
mkOptionType rec {

Loading…
Cancel
Save