nixin-web/build-virtual-machine.md

11 lines
423 B
Markdown
Raw Normal View History

2024-09-28 17:11:22 +00:00
# Build a virtual machine based on your generated configurations
Your Nix configurations are located in the `inventory` folder you can build and run the configuration file you want by running from the NixiN root folder, for example for the demo configuration file:
```bash
nix-build '<nixpkgs/nixos>' -A vm -I nixpkgs=channel:nixos-24.05 -I nixos-config=./inventory/demo-configuration.nix
./result/bin/run-nixos-vm
```