i would think part of it would be -- just pick something?
then...
try to get a job doing that something. or train until you can get a job doing that something.
that said, if you're wanting to potentially keep being a generalist, and only thinking about specializing because you can't find a new gig as a generalist, i would suspect there are a billion jobs out there for what you do -- devops -- contracts, full time, etc.
maybe i'm not getting what your background really is, etc.