diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index e64c41b7f48..c790e05f51b 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -394,7 +394,7 @@ in message = "Boot paths must be absolute, not ${args.path}"; } { - assertion = hasPrefix "/" args.efiSysMountPoint; + assertion = if args.efiSysMountPoint == null then true else hasPrefix "/" args.efiSysMountPoint; message = "Efi paths must be absolute, not ${args.efiSysMountPoint}"; } ] ++ flip map args.devices (device: {