grub module: use enum

This commit is contained in:
Eric Sagnes 2016-11-04 13:05:13 +09:00
parent 797d40767d
commit 80b854739c

View file

@ -324,8 +324,7 @@ in
fsIdentifier = mkOption { fsIdentifier = mkOption {
default = "uuid"; default = "uuid";
type = types.addCheck types.str type = types.enum [ "uuid" "label" "provided" ];
(type: type == "uuid" || type == "label" || type == "provided");
description = '' description = ''
Determines how GRUB will identify devices when generating the Determines how GRUB will identify devices when generating the
configuration file. A value of uuid / label signifies that grub configuration file. A value of uuid / label signifies that grub