extract osx config into osx-init script