Why does it try to use wallet instead of ledger?

export DFX_CYCLES_LEDGER_SUPPORT_ENABLE=1 is the way to go, either in the terminal or in a dotfile. dfx does not read this variable from .env