Esphome: Fails to start, OSError: [Errno 126] Required key not available

Hey nixos community, perhaps someone can help me out:
esphome dashboard fails to start

logs:

May 28 14:00:52 thepc systemd[1]: Stopped ESPHome dashboard.
May 28 14:00:52 thepc systemd[1]: esphome.service: Deactivated successfully.
May 28 14:00:52 thepc systemd[1]: Stopping ESPHome dashboard...
May 28 13:46:14 thepc esphome[146195]: OSError: [Errno 126] Required key not available
May 28 13:46:14 thepc esphome[146195]:     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
May 28 13:46:14 thepc esphome[146195]:     self._sock.sendto(data, addr)
May 28 13:46:14 thepc esphome[146195]:   File "/nix/store/60m4rxhg2fldqaak400c0lry96ijrzqn-python3-3.13.13/lib/python3.13/asyncio/selector_events.py", line 1280, in sendto
May 28 13:46:14 thepc esphome[146195]: Traceback (most recent call last):
May 28 13:46:14 thepc esphome[146195]: 2026-05-28 13:46:14,958 WARNING Error with socket 9 (('10.6.0.2', 5353))): [Errno 126] Required key not available
May 28 13:46:14 thepc esphome[146195]: 2026-05-28 13:46:14,886 INFO Starting dashboard web server on http://localhost:6052 and configuration dir /var/lib/esphome...
May 28 13:46:14 thepc systemd[1]: Started ESPHome dashboard.

config:

    esphome = {
      enable = true;
      openFirewall = true;
    };

I am guessing my wireguard vpn and/or avahi service existing is messing with mDNS here and thus the error. I expected for it to be possible to somehow pass config to esphome:

mdns:
  disabled: false

or

mdns:
  interface: enp0s31f6

But i see no option to pass configuration.

How to work around this issue?

It is not failing to start, that is a warning

Starting dashboard web server on http://localhost:6052

The default is to bind to localhost. Try adding

address = "0.0.0.0";

if you need to access it remotely.