forked from tangled.org/core
this repo has no description

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

authored by ptr.pet and committed by Tangled 1e31ae85 b0891450

Changed files
+11 -4
docs
+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
··· 173 type = "app"; 174 program = ''${tailwind-watcher}/bin/run''; 175 }; 176 }); 177 178 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 }); 183 184 nixosModules.appview = import ./nix/modules/appview.nix {inherit self;};