Add virtualisation.vmVariantWithDisko option

This commit is contained in:
Michael Hoang
2024-09-08 02:35:08 +10:00
parent e55f9a8678
commit ba66c22ec1
4 changed files with 63 additions and 46 deletions

View File

@@ -12,6 +12,16 @@ afterwards you can run the interactive VM with:
result/bin/disko-vm
```
You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS option:
```nix
{
virtualisation.vmVariantWithDisko = {
virtualisation.fileSystems."/persist".neededForBoot = true;
};
}
```
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