add vm helper script
this script builds and launches vm with configuration, and removes the img after closing vm note that you shulre remove from configuration.nix device specific entries (like hdds, network adapters)
This commit is contained in:
parent
d83ca31207
commit
e0441d161b
2 changed files with 2 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
device-configuration.nix
|
||||
hardware-configuration.nix
|
||||
result
|
||||
*.qcow2
|
1
vm.sh
Executable file
1
vm.sh
Executable file
|
@ -0,0 +1 @@
|
|||
nix-build '<nixpkgs/nixos>' -A vm -I nixpkgs=channel:nixos-23.11 -I nixos-config=./configuration.nix && $(ls ./result/bin/run-*) && rm *.qcow2
|
Loading…
Add table
Add a link
Reference in a new issue