Steady-state dynamo and current drive in a nonuniform bounded plasma