From ac0136509ce775b5d14bd2de0cf010f6c1bdc47e Mon Sep 17 00:00:00 2001 From: Emily Ann Ediger Date: Tue, 19 Jun 2018 04:05:50 -0500 Subject: [PATCH] added suggestion to support both str and int --- nixos/modules/system/boot/loader/grub/grub.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index f1da2f41b5c1..42da65857221 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -386,7 +386,8 @@ in default = mkOption { default = "0"; - type = types.str; + type = types.either types.int types.str; + apply = toString; description = '' Index of the default menu item to be booted. '';