Boundary-mediated phases of active matter