No I’m using the GUI version. nil is the return value of the member function indicating that there is no “DejaVu Sans Mono” in the list returned from the font-family-list function.
If I run the same on a different distro I get a non-nil value like this:
(member "DejaVu Sans Mono" (font-family-list))
("DejaVu Sans Mono" "STIX Two Text" "Nimbus Sans" "Nimbus Mono PS" "DejaVu Sans" "Nimbus Sans Narrow" "Misc Nil" "URW Bookman" "STIX Two Text" "DejaVu Sans" "Misc Fixed" "DejaVu Serif" ...)
The problem was that there was another more recent version of emacs in my path. This was built without freetype support. Using the older system provided emacs works.