Open 9glenda opened 8 months ago
Sorry for the delay. I think this would be an interesting idea. I think having the systemd service use run
would make the most sense, just to make sure that we ensure we fshalt when the service is shutdown (and by extension when the host shutdowns). I will caution that the current design of these VMs is to be a demo first, and a reasonable long running cpu server second. Perhaps for these vms we should do a bit more work inside the VM to make them a bit more fit for this purpose. That might include making it a proper service=cpu
box, perhaps allowing the use of another hostowner besides glenda
, changing the default password, making it a proper auth machine.
Perhaps what we want to do is expose a field in the module that allows the user to customize what the "base" qcow2 is. Allowing arguments for the hostowner and what not. Of course passing in the password w.r.t. keeping it secret from the nix store is a bit tricky as usual.
Nixos module
The module should set up a 9front VM and a wrapped drawterm command, used to connect to the VM. This could be achieved using a systemd service for the VM. Or by just making use of the
run
package, which is already part of the repo.I'd like to write the module and open a PR but I wanted to ask rather that's even desired to be part of the repo first. Obviously I'm open for any design suggestions.