A circle is tangent to the midpoint of one of the sides of a regular hexagon with side length 2x. A line going between diametrically opposite points as shown has length of 1 one side of the circle, and of x (half the side length of the hexagon) the other side of the circle.
What is the value of x?
For a bonus, what is the radius of the circle?