Run nix fmt

This commit is contained in:
Felix Uhl
2024-09-26 12:56:38 +02:00
parent 4c4c869c2d
commit 72c867c439
6 changed files with 17 additions and 15 deletions

View File

@@ -1,7 +1,9 @@
# 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:
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'
```
@@ -12,7 +14,8 @@ afterwards you can run the interactive VM with:
result/bin/disko-vm
```
You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS option:
You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS
option:
```nix
{
@@ -24,6 +27,6 @@ You can configure the VM using the `virtualisation.vmVariantWithDisko` NixOS opt
}
```
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
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