module: add vmWithDisko output to system

This commit is contained in:
lassulus committed 2024-08-01 13:00:08 +02:00
1 parent 5a9f2498fb
commit a574d68d37
4 files changed
+121

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# Running Interactive VMs with disko
disko now exports it's 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