File tree Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Original file line number Diff line number Diff line change 1616.vscode /** /*
1717! .vscode /extensions.json
1818! .vscode /launch.json
19- ! .vscode /settings.json
2019! .vscode /tasks.json
2120
2221# Local env files
Original file line number Diff line number Diff line change 1+ # To learn more about how to use Nix to configure your environment
2+ # see: https://developers.google.com/idx/guides/customize-idx-env
3+ { pkgs , ... } : {
4+ # Which nixpkgs channel to use.
5+ channel = "stable-25.05" ; # or "unstable"
6+
7+ # Use https://search.nixos.org/packages to find packages
8+ packages = [
9+ pkgs . python3
10+ pkgs . nodejs_24
11+ ] ;
12+
13+ # Sets environment variables in the workspace
14+ env = { } ;
15+ idx = {
16+ # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
17+ extensions = [
18+ # "vscodevim.vim"
19+ ] ;
20+
21+ # Enable previews and customize configuration
22+ previews = {
23+ # Currently disabled because the preview system wasn't working
24+ enable = false ;
25+ previews = {
26+ web = {
27+ command = [
28+ "npm"
29+ "run"
30+ "start"
31+ "--"
32+ "--port"
33+ "$PORT"
34+ "--host"
35+ "0.0.0.0"
36+ "--disable-host-check"
37+ ] ;
38+ manager = "web" ;
39+ } ;
40+ } ;
41+ } ;
42+
43+ # Workspace lifecycle hooks
44+ workspace = {
45+ # Runs when a workspace is first created
46+ onCreate = {
47+ # npm-install = "npm install";
48+ # Currently disabled because the preview system wasn't working
49+ } ;
50+ # Runs when the workspace is (re)started
51+ onStart = {
52+ # npm-install = "npm install";
53+ # Currently disabled because the preview system wasn't working
54+ } ;
55+ } ;
56+ } ;
57+ }
You can’t perform that action at this time.
0 commit comments