Skip to content

Pass additional NixOS modules to VM #197

@pizzapim

Description

@pizzapim

I use custom NixOS modules to make additional NixOS options available to my servers, and I would like to do the same for VMs. However, I could not find a way to do this. I am using the fully declarative MicroVM setup.

An option like the following would be awesome:

{ microvm, ... }: {
  imports = [ microvm.host ];
  microvm.vms = {
    my-microvm = {

      extraModules = [ ];

      config = {
        # [...]
      };
    };
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions