Skip to content

Commit d9932c7

Browse files
committed
refactor: start vm from script
1 parent ff08851 commit d9932c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

default.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ rec {
341341
};
342342

343343
# $ nix-build . -A demo-vm
344-
# $ ./result/bin/run-nixos-vm
345-
demo-vm = demo-system.config.system.build.vm;
344+
# $ ./result
345+
demo-vm = pkgs.writeShellScript "demo-vm" ''
346+
${demo-system.config.system.build.vm}/bin/run-nixos-vm
347+
'';
346348
}

0 commit comments

Comments
 (0)