There’s no automated way to do that yet. I might wait for SSL certificates refactor by swalkinshaw · Pull Request #1310 · roots/trellis · GitHub with https://github.com/roots/trellis-cli/pull/311
The generated Lima config is in .trellis/lima/<name>.yml
but there’s two issues:
- it will be re-generated each time you re-create a Lima instance
- I don’t even know how or if Lima lets you change those params on an existing instance with re-creating it
Basically, I need to add support to the CLI config file so customizing those VM properties so they’ll be in the generated config. Right now only the defaults are supported as you found. If you want to try contributing that change, it shouldn’t be so hard and I could help out.
I’d recommend posting an issue on https://github.com/lima-vm/lima/issues since that’s coming directly from the vz
package that Lima uses for macOS virtualization.
Reminder: trellis vm
mainly wraps underlying limactl
commands so you can always run those manually too.
Yeah I get that too. Lima assumes those directories are mounted by default, but they aren’t in my integration. So there’s two options:
- keep those mounted default dirs to satisfy Lima’s assumptions
- customize the default shell dir which I’ll look into. I think a good default is to auto cd into
/srv/www/<main site>