···47`nixos-shell` like so:
4849```bash
50-QEMU_NET_OPTS="hostfwd=tcp::6000-:6000,hostfwd=tcp::2222-:22" nixos-shell --flake .#knotVM
05152# hit Ctrl-a + c + q to exit the VM
53```
5455-This starts a knot on port 6000 with `ssh` exposed on port
56-2222. You can push repositories to this VM with this ssh
57-config block on your main machine:
5859```bash
60Host nixos-shell
···47`nixos-shell` like so:
4849```bash
50+nix run .#vm
51+# or nixos-shell --flake .#vm
5253# hit Ctrl-a + c + q to exit the VM
54```
5556+This starts a knot on port 6000, a spindle on port 6555
57+with `ssh` exposed on port 2222. You can push repositories
58+to this VM with this ssh config block on your main machine:
5960```bash
61Host nixos-shell
+6
flake.nix
···173 type = "app";
174 program = ''${tailwind-watcher}/bin/run'';
175 };
000000176 });
177178 nixosModules.appview = import ./nix/modules/appview.nix {inherit self;};
···173 type = "app";
174 program = ''${tailwind-watcher}/bin/run'';
175 };
176+ vm = {
177+ type = "app";
178+ program = toString (pkgs.writeShellScript "vm" ''
179+ ${pkgs.nixos-shell}/bin/nixos-shell --flake .#vm
180+ '');
181+ };
182 });
183184 nixosModules.appview = import ./nix/modules/appview.nix {inherit self;};