+5
-4
docs/hacking.md
+5
-4
docs/hacking.md
···
47
`nixos-shell` like so:
48
49
```bash
50
-
QEMU_NET_OPTS="hostfwd=tcp::6000-:6000,hostfwd=tcp::2222-:22" nixos-shell --flake .#knotVM
51
52
# hit Ctrl-a + c + q to exit the VM
53
```
54
55
-
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:
58
59
```bash
60
Host nixos-shell
···
47
`nixos-shell` like so:
48
49
```bash
50
+
nix run .#vm
51
+
# or nixos-shell --flake .#vm
52
53
# hit Ctrl-a + c + q to exit the VM
54
```
55
56
+
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:
59
60
```bash
61
Host nixos-shell
+6
flake.nix
+6
flake.nix
···
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
});
183
184
nixosModules.appview = import ./nix/modules/appview.nix {inherit self;};