I am playing around with Baguette and building a NixOS-based image for it. I have most of it working, except for the integration with the "Terminal" app.
Here's what I am doing:
1. When going through the "Configure Linux" onboarding flow in the settings, I pick the username "aldur", which is _not_ the one suggested by default.
2. The VM image I am using auto-provisions that username.
3. When starting the VM through `vmc start --vm-type BAGUETTE <vm_name>` all works.
If I name the VM `termina` and then try to start it from the Terminal app, the gRPC request that concierge sends to `maitred` uses the _default_ username from the "Configure Linux" flow (instead of "aldur", it is basically the part of my email before the @).
I have checked the messages being passed by stracing `maitred`.
To make a `termina` VM, I have tried both using "vmc import termina ..." and "vmc create ..." to respectively overwrite the disk and just create a new VM. In one case, I could get Terminal integration to work correctly only for a few hours (maybe until some cache expires, or similar).
As far as I can tell, the only other thing being broken is the SFTP integration in the Files app.
I have checked chrome://prefs-internals/ and in there the username is correctly configured: "container_username": "aldur".
Using `vsh termina penguin` works without problems.
Looking at the logs, it seems like overwriting the VM/disk is invalidating some disk-related check, which causes the issue.