mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
5715bc02df
Co-authored-by: Paul Haerle <hello@phaer.org>
17 lines
577 B
Markdown
17 lines
577 B
Markdown
# Running Interactive VMs with disko
|
|
|
|
disko now exports its own flavor of interactive VMs (similiar to config.system.build.vm).
|
|
Simply import the disko module and build the vm runner with:
|
|
```
|
|
nix build -L '.#nixosConfigurations.mymachine.config.system.build.vmWithDisko'
|
|
```
|
|
|
|
afterwards you can run the interactive VM with:
|
|
|
|
```
|
|
result/bin/disko-vm
|
|
```
|
|
|
|
extraConfig that is set in disko.tests.extraConfig is also applied to the interactive VMs.
|
|
imageSize of the VMs will be determined by the imageSize in the disk type in your disko config.
|
|
memorySize is set by disko.memSize
|