[feature] justfile: add build-vm and run-vm commands
This commit is contained in:
parent
da21f7a14c
commit
0d139aa66f
2 changed files with 9 additions and 6 deletions
|
@ -14,14 +14,11 @@ looking at it :p (maybe you can also learn some stuff on the way).
|
|||
|
||||
## Try out in a VM
|
||||
|
||||
If you already have nix you can run the following commands:
|
||||
If you already have nix you can run the following command to try this
|
||||
configuration in a vm:
|
||||
|
||||
```console
|
||||
$ nix run nixpkgs#nixos-rebuild -- build-vm --flake .#vm
|
||||
building the system configuration...
|
||||
|
||||
Done. The virtual machine can be started by running /nix/store/$hash-nixos-vm/bin/run-nixos-vm
|
||||
$ /nix/store/$hash-nixos-vm/bin/run-nixos-vm $QEMU_OPTS_WL
|
||||
$ just run-vm
|
||||
```
|
||||
|
||||
The default user is `jdoe` and the default password is `example`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue