diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index f1da2f41b5c..42da6585722 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. '';