Monorepo for Tangled tangled.org

flake.nix,docs: add a vm app output for running the vm more conveniently, update hacking doc

Changed files
+11 -4
docs
+5 -4
docs/hacking.md
··· 47 47 `nixos-shell` like so: 48 48 49 49 ```bash 50 - QEMU_NET_OPTS="hostfwd=tcp::6000-:6000,hostfwd=tcp::2222-:22" nixos-shell --flake .#knotVM 50 + nix run .#vm 51 + # or nixos-shell --flake .#vm 51 52 52 53 # hit Ctrl-a + c + q to exit the VM 53 54 ``` 54 55 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: 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: 58 59 59 60 ```bash 60 61 Host nixos-shell
+6
flake.nix
··· 173 173 type = "app"; 174 174 program = ''${tailwind-watcher}/bin/run''; 175 175 }; 176 + vm = { 177 + type = "app"; 178 + program = toString (pkgs.writeShellScript "vm" '' 179 + ${pkgs.nixos-shell}/bin/nixos-shell --flake .#vm 180 + ''); 181 + }; 176 182 }); 177 183 178 184 nixosModules.appview = import ./nix/modules/appview.nix {inherit self;};