grub module: use enum
commit80b854739c57debee887aaf4efa9fb113916ae49
authorEric Sagnes <eric.sagnes@gmail.com>
dateFri 4 Nov 2016, 13:05 (10 years ago)
parent797d407
nixos/modules/system/boot/loader/grub/grub.nix+1−2
@@ -324,8 +324,7 @@ in
324324
325325 fsIdentifier = mkOption {
326326 default = "uuid";
327− type = types.addCheck types.str
328− (type: type == "uuid" || type == "label" || type == "provided");
327+ type = types.enum [ "uuid" "label" "provided" ];
329328 description = ''
330329 Determines how GRUB will identify devices when generating the
331330 configuration file. A value of uuid / label signifies that grub