Merge pull request #99471 from Infinisil/fix-enum-bool-description
lib/types: Fix type description of bool enum values
This commit is contained in:
commit
0a366a1550
1 changed files with 1 additions and 0 deletions
|
@ -499,6 +499,7 @@ rec {
|
||||||
show = v:
|
show = v:
|
||||||
if builtins.isString v then ''"${v}"''
|
if builtins.isString v then ''"${v}"''
|
||||||
else if builtins.isInt v then builtins.toString 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}>'';
|
else ''<${builtins.typeOf v}>'';
|
||||||
in
|
in
|
||||||
mkOptionType rec {
|
mkOptionType rec {
|
||||||
|
|
Loading…
Reference in a new issue