mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
added suggestion to support both str and int
This commit is contained in:
parent
ae04fb01f8
commit
ac0136509c
1 changed files with 2 additions and 1 deletions
|
@ -386,7 +386,8 @@ in
|
||||||
|
|
||||||
default = mkOption {
|
default = mkOption {
|
||||||
default = "0";
|
default = "0";
|
||||||
type = types.str;
|
type = types.either types.int types.str;
|
||||||
|
apply = toString;
|
||||||
description = ''
|
description = ''
|
||||||
Index of the default menu item to be booted.
|
Index of the default menu item to be booted.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue