Minecraft wiki entry for Development_versions, associated text: Using bone meal on netherrack adjacent to nylium converts it into nylium.
If two nylium blocks of different types are present, it chooses the type at random based on how many blocks of each type are around it.