Hi,
On Wed, 02 Dec 2026 at 22:14, Arnaud Daby-Seesaram <[email protected]> wrote:
> guix time-machine -C channels.scm -- system vm -L . vm.scm ...
>
> Ideally, I would like to make a service analogous to
> `hurd-vm-service-type' that could start and stop the VM (the image
> generation would become part of my system's reconfigure).
>
> Is this possible with existing Guix mechanisms?
Well, I would go for writing a Guix extension [0] wrapping your
command-line. If you haven’t already, give a look to:
https://guix.gnu.org/en/blog/2026/extending-guix/
> AFAICT, `guix time-machine' builds a revision of Guix from
> `channels.scm', and runs the `guix' command from there.
Yes. The manual speaks about Inferiors:
https://guix.gnu.org/manual/devel/en/html_node/Inferiors.html
> Is there a way to use the Guile modules of the revision instead to
> generate the VM-related derivations, that would later be evaluated by my
> current revision of Guix?
Hum, I don’t know the inferiors mechanisms are supporting the VM type.
Cheers,
simon
0: https://guix.gnu.org/manual/devel/en/html_node/Extending-Guix.html