summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/init/run-vm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lass/5pkgs/init/run-vm.sh')
-rwxr-xr-xlass/5pkgs/init/run-vm.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/5pkgs/init/run-vm.sh b/lass/5pkgs/init/run-vm.sh
new file mode 100755
index 000000000..13914ad5f
--- /dev/null
+++ b/lass/5pkgs/init/run-vm.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env nix-shell
+#! nix-shell -i bash -p nixos-generators
+
+set -efu
+
+WD=$(dirname "$0")
+nixos-generate -I stockholm="$WD"/../../.. -c "$WD"/config.nix -f vm-nogui --run