feat(README): Add instructions to build a test vm
This commit is contained in:
parent
e4f3799d6b
commit
c94b93726a
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
@ -2,3 +2,20 @@
|
|||
|
||||
This is only intended for my use, but you can see how I overengineer stuff by
|
||||
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:
|
||||
|
||||
```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 -vga virtio
|
||||
```
|
||||
|
||||
The default user is `jdoe` and the default password is `example`.
|
||||
|
||||
> [!Note]
|
||||
> The `-vga virtio` flag is important, sway won't run if it is missing.
|
||||
|
|
Loading…
Reference in a new issue