TIL: cloud-init will make life easier in multipass world

to start a VM and inject my ssh keys into the mix launch the vm with a cloud-init profile that creates your user and injects the right ssh key into the mix.

cloud-init.yaml

users:
  - default
  - name: sulrich
    sudo: ALL=(ALL) NOPASSWD:ALL
    ssh_authorized_keys:
      - ssh-ed25519 AAAA ....

invoke with appropriate injection.

multipass launch -n sweet-jammy-vm jammy --cloud-init ~/.dotfiles/templates/cloud-init.yaml