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 {
default = "uuid";
type = types.addCheck types.str
(type: type == "uuid" || type == "label" || type == "provided");
type = types.enum [ "uuid" "label" "provided" ];
description = ''
Determines how GRUB will identify devices when generating the
configuration file. A value of uuid / label signifies that grub